Accessing Values from Weeks Ago

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53382 quote
    JayyunitJayyunit
    Participant
    New

    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 quote
    NicolasNicolas
    Keymaster
    Legend

    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.

    Jayyunit thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Accessing Values from Weeks Ago


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Jayyunit @jayyunit Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
8 years, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/21/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...