Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing multiple time frame indicators from a stategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Drawing multiple time frame indicators from a stategy

    Hi,
    I've learned I can't do this like that, what was my first thought:

    protected override void Initialize()
    {
    Add(PeriodType.Day,1);
    Add(PeriodType.Minute,60);

    Add(EMA(BarsArray[1],20)); //wrong
    Add(EMA(BarsArray[2],20));
    }

    So what's the solution?

    Thanks

    #2
    martraf, welcome to our forums - correct you could not dynamically use this approach in Initialize(), best would be calling the MultiSeries indicators in the add directly, so the timesframes for the indicator calculations are done internally in the indicator and you then only add the complete indicator for display.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    671 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X