Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multitimeframe indicators visible to chart

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

    Multitimeframe indicators visible to chart

    in Initialize() something like this:

    Add(PeriodType.Minute, altPeriod);

    Add(DM(BarsArray[1], Period); // Ok to compile but this will generate error:
    // Add(DM(Period); // ok

    Error on running optimizer: Value can not be Null, Name of parameter: value

    Any way to add multitimeframe indicators to the optimizer chart?

    #2
    Hello raffu,

    Yes, this is possible. The indicator itself will need to be a multiseries indicator, with its plot set on another series. Then when you add it, the multiseries part is already included and you wouldn't need separately a BarsArray[1] in the Add() method.

    Add(DM(Period);
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      hmmm.

      I'm still missing something!?
      Could You give a simple example of any indicator?

      (Noyt able to change to any other "input" as the orignal one, it would be ok to change it at optimizer window)

      Comment


        #4
        Sure, attached is an SMA calculated on the secondary series (1 minute).
        Attached Files
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Ok, Thanks a lot.
          (So it was so that I'll do appropriate indicator, no problem)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          649 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          573 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          576 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X