I’m using the ATR indicator as my Stop loss and profit target and I want that value to not update with each new bar. I’ve tried different methods but nothing works so far.
1
2
3
4
5
ATR=AverageTrueRange[14]
SET STOPpLOSS(1*ATR)
SET TARGETpPROFIT(2*ATR)
Here the Value of “ATR” updates as every new bar opens but I want to only get the value from the same bar as I opened my position and use that value as a constant but I can’t seem to figure out how.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue