Forums › ProRealTime English forum › ProOrder support › How can I code ATR for position sizing and stops ? › Reply To: How can I code ATR for position sizing and stops ?
11/14/2018 at 7:21 PM
#84882
Hi Hendymk,
I use this code with some of my systems:
|
1 2 3 4 5 6 7 8 |
//Variables NATR = A //ATR Period SATR = B // ATR Multiplier for Stop PATR = C// ATR Multiplier for Profit //Stop and Target SET STOP LOSS SATR*AverageTrueRange[NATR](close) SET TARGET PROFIT PATR*AverageTrueRange[NATR](close) |
Does it work for you?