Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Substitute for ^ADD Index

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

    #16
    Hello PN720,

    BarsInProgress 0 is the primary series.

    Are you asking how to run the logic when BarsInProgress is 0?

    If you want to run the logic every 1 minute and the primary series is not 1 minute, you can add a 1 minute series with AddDataSeries() and then run on that specific BarsInProgress.


    The AdvanceDecline indicator adds a 1 tick ^ADV and 1 tick ^DECL for its calculations. To call this indicator from a host script, you must add those 1 tick series to your script as well.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      I thought the Support Document states that if you are running a strategy which uses an indicator which has secondary dataseries' you must add those same dataseries within the strategy. If this is true, wouldn't we have to add the ^ADV and the ^Decl dataseries within a strategy we are using it in?

      quote: (From Educational Resources/Multi TimeFrame & Instruments)

      Note: To maximize data loading performance, any NinjaScript object (indicator or strategy as host) which references a multi-series indicator which calls AddDataSeries must include it's own calls to AddDataSeries(). For example, if the code above was included in an indicator, and that indicator was referenced in a NinjaScript strategy, then the hosting strategy will need to include the same calls to AddDataSeries(). When the strategy adds the additional Bars objects, the calls to AddDataSeries() within the indicator will be ignored. If the Bars objects are not added by the strategy in such cases, and error will be thrown in the Log tab of the Control Center that would read - "A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state."

      Jim-Boulder
      NinjaTrader Ecosystem Vendor - Elephant Tracks

      Comment


        #18
        Hello Jim-Boulder,

        Yes you need to add the series that the indicator uses when its hosted. Chelsea had mentioned that in his reply:


        The AdvanceDecline indicator adds a 1 tick ^ADV and 1 tick ^DECL for its calculations. To call this indicator from a host script, you must add those 1 tick series to your script as well.​

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X