Risk/Reward Tool showing R multiples
Forums › ProRealTime English forum › ProRealTime platform support › Risk/Reward Tool showing R multiples
- This topic has 7 replies, 5 voices, and was last updated 3 years ago by JC_Bywan.
-
-
07/05/2021 at 3:56 PM #173177
Hi,
I’ve been looking for a risk/reward tool in PRT, and the search function sent me here.
I’m looking to mark the entry price and stop loss and see where 1R, 2R, 3R, etc., fall on the chart. Does anyone know whether something like that exists? I’d rather not reconfigure the Fib tool if I can avoid it.
07/07/2021 at 4:45 PM #173305Dear Zac,
Following your request, please note that such a risk/reward tool does not exist yet, but this is a good suggestion.
We already had this suggestion and we are taking it into account for our future improvements.
Meanwhile, i invite you to you ask the ProRealCode community if there is a way to code an index in this sense.
Regards,
Victor from ProRealTime.
1 user thanked author for this post.
07/07/2021 at 6:49 PM #173316Hi, here’s a probuilder personal indicator to add to the price window, you just need to create the 3 entry parameters myentry, mystop, Nbarres respectively your expected entry level, your expected stop and the number of bars to the right to draw the levels and text. Then you can just change them from the indicator properties window. It works for both long and short, as long as stop is positionned accordingly compared with entry, it will automatically place 1R,2R,3R in the right direction. Any request to modify, please ask I’ll see what more I can do:
1234567891011121314151617181920212223242526272829303132//PRC_Custom_R_tool | indicator//07.07.2021//Noobywan @ www.prorealcode.com//Sharing ProRealTime knowledge//// List of Parameters to create, with default values suiting your favorite asset, to configure in the properties window:// myentry, type decimal// mystop, type decimal// Nbarres, type integerdefparam DRAWONLASTBARONLY=trueLeR=myentry-mystopOneR=myentry+LeRTwoR=myentry+LeR*2ThreeR=myentry+LeR*3if islastbarupdate thenDRAWSEGMENT(barindex, myentry, barindex+Nbarres, myentry) style(dottedline,1)DRAWSEGMENT(barindex, mystop, barindex+Nbarres, mystop) coloured(255,0,0) style(dottedline,1)DRAWSEGMENT(barindex, oneR, barindex+Nbarres, oneR) coloured(0,155,0) style(dottedline,1)DRAWSEGMENT(barindex, twoR, barindex+Nbarres, twoR) coloured(0,155,0) style(dottedline,1)DRAWSEGMENT(barindex, threeR, barindex+Nbarres, threeR) coloured(0,155,0) style(dottedline,1)DRAWTEXT("in", barindex+Nbarres+1, myentry)DRAWTEXT("stop", barindex+Nbarres+1, mystop) coloured(255,0,0)DRAWTEXT("1R", barindex+Nbarres+1, oneR) coloured(0,155,0)DRAWTEXT("2R", barindex+Nbarres+1, twoR) coloured(0,155,0)DRAWTEXT("3R", barindex+Nbarres+1, threeR) coloured(0,155,0)endifreturn07/10/2021 at 6:48 AM #17339707/12/2021 at 11:25 PM #173554I am using an updated version of the Fibonacci tool.
Basically, I configured that tool to show lines at 0 (entry point) and 100 (stop loss). Then, I show -100 (R1), -200 (R2) and so on…
I am not the smart man… I am pretty sure I copied it from someone else here in this forum, but I don’t have the original post (sorry).In attachment a screenshot of the configuration.
In order to use it, for example in a long setup, you have to start from the SL and define the entry point (at least one day after otherwise it doesn’t work).
1 user thanked author for this post.
07/20/2021 at 12:33 PM #173865I appreciate the time you took to create/share the code. Unfortunately, I am unable to get it working on FX.
Have I made an error? The values are based on EURUSD D1 chart today (July 20th).
1234567891011121314151617181920212223242526272829303132//PRC_Custom_R_tool | indicator//07.07.2021//Noobywan @ www.prorealcode.com//Sharing ProRealTime knowledge//// List of Parameters to create, with default values suiting your favorite asset, to configure in the properties window:myentry=11830.5mystop=11750.0Nbarres=15defparam DRAWONLASTBARONLY=trueLeR=myentry-mystopOneR=myentry+LeRTwoR=myentry+LeR*2ThreeR=myentry+LeR*3if islastbarupdate thenDRAWSEGMENT(barindex, myentry, barindex+Nbarres, myentry) style(dottedline,1)DRAWSEGMENT(barindex, mystop, barindex+Nbarres, mystop) coloured(255,0,0) style(dottedline,1)DRAWSEGMENT(barindex, oneR, barindex+Nbarres, oneR) coloured(0,155,0) style(dottedline,1)DRAWSEGMENT(barindex, twoR, barindex+Nbarres, twoR) coloured(0,155,0) style(dottedline,1)DRAWSEGMENT(barindex, threeR, barindex+Nbarres, threeR) coloured(0,155,0) style(dottedline,1)DRAWTEXT("in", barindex+Nbarres+1, myentry)DRAWTEXT("stop", barindex+Nbarres+1, mystop) coloured(255,0,0)DRAWTEXT("1R", barindex+Nbarres+1, oneR) coloured(0,155,0)DRAWTEXT("2R", barindex+Nbarres+1, twoR) coloured(0,155,0)DRAWTEXT("3R", barindex+Nbarres+1, threeR) coloured(0,155,0)endifreturnI have also attached a screenshot of the error message.
07/20/2021 at 12:56 PM #17387107/20/2021 at 6:35 PM #173908Thanks Roberto, hi Zac, the code is now in the library, you may prefer to download it from there, it will have the parameters defined in the properties window, and rather than having to type them in the code listing you can change them from the indicator properties window:
https://www.prorealcode.com/prorealtime-indicators/risk-reward-tool-showing-r-multiples/
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on