referencing 10 day MA from 5 days ago

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5006 quote
    Real ProReal Pro
    Participant
    Average

    Hello again,

    I’m in the right sub-forum this time.

    I want to reference average[10](close) from 5 days ago.  How do I write this please?

    #5038 quote
    AdolfoAdolfo
    Participant
    Senior

    Hi, it should be something like this:

     

    indicator= average[10](close)
    reference = indicator[5]

     

    😉

    #5049 quote
    Real ProReal Pro
    Participant
    Average

    Thanks Adolfo – that looks good.

    I have a new question!

    If I’m in the 5 min display, how do I reference yesterday’s MA of the 60 min time frame?

    Regards

    #5076 quote
    AdolfoAdolfo
    Participant
    Senior

    Hi again, I didn`t try it yet, but found this:

    TIMEFRAME(5 minutes)
    5minindicator1 = indicator1
    5minindicator2 = indicator2
    TIMEFRAME(1 hour)
    1hourindicator1 = indicator3
    1hourindicator2 = indicator4
    
    #5077 quote
    Real ProReal Pro
    Participant
    Average

    Thanks again Adolfo.

    Cheers.

Viewing 5 posts - 1 through 5 (of 5 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

referencing 10 day MA from 5 days ago


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Real ProReal Pro
10 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/07/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...