Hi guys,
Im trying to store past data as a variable. For example, storing the Bollinger Band Width from last month so that I can compare with the current Bollinger Band Width. Another simple example is last month’s price range, compared to this month’s price range. I know using a function such as Average[50] gets the current 50 day Moving Average. But is it possible to separate previous data with current data?
Thanks in advance
Jay
Just store values in different variable names and compare them.
50 periods moving average on the current bar is
a = average[50]
while the 50 periods moving average from 20 bars ago is
b = average[50][20]
Do the same for any other indicator.