Accessing Values from Weeks Ago

Forums ProRealTime English forum ProScreener support Accessing Values from Weeks Ago

Viewing 2 posts - 1 through 2 (of 2 total)
  • #53382

    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

    #53681

    Just store values in different variable names and compare them.

    50 periods moving average on the current bar is 

    while the 50 periods moving average from 20 bars ago is

    Do the same for any other indicator.

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login