Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding multiple Bar Series in separate indicators and loading into Strategy

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

    Adding multiple Bar Series in separate indicators and loading into Strategy

    Hey. Say I have an indicator A that is adding a volumetric bar series and indicator B which is loading daily chart, hourly, 15min. Now I use there two indicators in a strategy together. Will this mess up the bar series array in the strategy?

    #2
    No. But, the strategy has to load all of the data series needed by either nested indicator during the strategy's state.configure, and you should instantiate the indicators during state.dataloaded.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello Magzor,

      Bruce is providing good information.

      The strategy will also have to call the same AddDataSeries() calls as any hosted indicator that calls AddDataSeries().

      Adding a data series does not change other data series.

      Your logic can process on specific BarsInProgress.


      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hi Bruce and Chelsea,
        Thanks for the replies!
        So as far as I understand from the replies; as long as the same type of bar data is loaded, then the order of the BarsArray does not have to match between the indicator and the strategy

        Comment


          #5
          Correct, the order loaded does not have to match. They just have to all be there somewhere. If the inner (nested) indicator tries to access something that wasn't loaded in the outer (hosting) indicator, it will raise an exception and terminate.
          Bruce DeVault
          QuantKey Trading Vendor Services
          NinjaTrader Ecosystem Vendor - QuantKey

          Comment


            #6
            Perfect, that makes what I want to design a lot more flexible. Thanks for the explanation!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            56 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            133 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            73 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X