Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need custom indicator constructor guide.

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

    Need custom indicator constructor guide.

    I wrote a custom indicator.

    Is it possible to adddataseries that indicator to a strategy but on a different instrument with a different time frame? In other words, there will be two different instruments on 2 different time frames. Both will need to have my custom indicator running on it.

    I know how to add another time frame series but I'm not sure how to add the custom indicator for that series.

    I hope that made sense?

    #2
    Hello Chippy,

    Thanks for your post.

    You would add your data series in State.Configure, and then you would instantiate your indicators in State.DataLoaded.

    The first parameter of an indicator's constructor is always the input series. Therefore, you can provide Closes[0] in the first parameter for the primary data series and Closes[1] for the secondary data series.

    I.E.

    MySMA1 = SMA(Closes[0], 14);
    MySMA2 = SMA(Closes[1], 14);

    Let us know if there is anything else we can do to help.

    Comment


      #3
      Oh, now I see. I tried that originally, but wasn't getting the constructor option for the iSeries (or didn't see it) for my indicator like I see with NT indicators and thought I need to add a constructor to the indicator manually to mimic that behavior. Still figuring all this out. Really appreciate you and your team!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X