Hello,
I am hoping someone can kindly help. I am trying to calculate 2 x the standard deviation of a range over a specified number of bars. However, I am failing to got the correct formula.
Thank you very much
rrange=high-low
stdrange=2*stdev(rrange,[10])
Hi, keyword “range” is already high-low in probuilder language, and “std” is the right syntax, not stdev: https://www.prorealcode.com/documentation/std/
So if understand your request, that would be:
Nbars=10
stdrange=2*std[Nbars](range)
return stdrange
Superb, merci! That has worked a treat. Thank you for the link too, added to boomarks.