Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

256 Bars

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

    256 Bars

    Hello,

    i have got a chart with the following data settings:

    Load data based on: Bars
    Bars to load: 256

    Now if i add a 1 Tick Series of the same Instrument with AddDataSeries() then this added DataSeries also has a maximum of 256 bars.

    Is it somehow possible to have the Main Chart DataSeries set to 256 Bars and having the added 1 Tick Series to go over the full 256 main bars series, starting with the first bar of the main series?

    Thank you,
    Mike

    #2
    Hello mk77ch,
    Thanks for your post.

    When adding multiple Data Series of the same instrument and the same Bar Type, the 'barsToLoad' property will only be effective on the first added series. Subsequent series with a different barsToLoad setting will not load a different number of bars then the first series.

    Since ticks and minutes are different bar types you can create that 1-tick series with the proper overload.
    Code:
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, int barsToLoad, string tradingHoursName, bool? isResetOnNewTradingDay)
    AddDataSeries()
    https://ninjatrader.com/support/help...dataseries.htm

    Please let me know if you have any questions.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hello Josh,

      well the problem is that i don't know how many 1 tick bars i would have to load to match the 256 bars of the main series.

      So this would only work for a fixed number of bars.

      But thank you anyway!
      Cheers,
      Mike

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by trilliantrader, 04-18-2024, 08:16 AM
      4 responses
      17 views
      0 likes
      Last Post trilliantrader  
      Started by mgco4you, Today, 09:46 PM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by wzgy0920, Today, 09:53 PM
      0 responses
      7 views
      0 likes
      Last Post wzgy0920  
      Started by Rapine Heihei, Today, 08:19 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Rapine Heihei, Today, 08:25 PM
      0 responses
      9 views
      0 likes
      Last Post Rapine Heihei  
      Working...
      X