Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddDataSeries Question

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

    AddDataSeries Question

    There doesn't seem to be an overload for the following scenario:

    Scenario:
    Primary BarPeriodType: Minute, Period: 30, TradingHours: CME ETH
    Secondary BarPeriodType: Minute, Period: 1440, TradingHourse: CME RTH

    I'm trying to add the Secondary series.

    #2
    You can use the following signature, where you specify the desired BarsPeriod value in an object initializer

    Code:
    AddDataSeries(Instrument.FullName, new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1440 }, "CME US Index Futures RTH");
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thanks Matt,
      What confused me was the BarsPeriod empty constructor. The intellisense doesn't help much in this case. Also, the help file describes it as "The Bars Object", and there is no link to the BarsPeriod class.

      Perhaps you could a) add another constructor to the BarsPeriod class that takes BarPeriodType and Period, and b) add a bit more description to the help file for BarsPeriod.

      Comment


        #4
        Thanks for your feedback. There will be updates to the help guide in this area around the time B3 is released.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 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