I have an indicator that requires for an sma to be less than it was LookBak days ago.
How do I plot sma[bar] - sma[bar-LookBak]
Thanks.
Size:
Color:
Please see the "DataSeries" entry in the QuickRef. In other words, to shift a series you use the >> operator.
CODE:
Please log in to see this code.
There exists another possibility - just what you're looking for:
Shifted Moving Average (self-descriptive)
ShiftDelay (more universal)
Size:
Color:
Thanks Eugene..
Size:
Color: