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 cmtjoancolmenero, Yesterday, 03:58 PM
      4 responses
      24 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Brevo, Today, 01:45 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by rjbtrade1, 11-30-2023, 04:38 PM
      2 responses
      74 views
      0 likes
      Last Post DavidHP
      by DavidHP
       
      Started by suroot, 04-10-2017, 02:18 AM
      5 responses
      3,022 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Stanfillirenfro, Today, 07:23 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X