Forums ProRealTime English forum ProOrder support Need help to code a more dynamic trailing stop Reply To: Need help to code a more dynamic trailing stop

#61170

Yeah sorry that was a copy/paste from code I used.

It was originally average[max(1,barindex)](((AverageTrueRange[5](close)[17])+(AverageTrueRange[5](close)[12])+(AverageTrueRange[8](close)[2]))/3)

Obviously at some point changed it, but didn’t want to remove it altogether.