Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dataseries problem in Multi-timeframe strategy

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

    Dataseries problem in Multi-timeframe strategy

    Hi,

    Is there anything unusual about the way data series work in a multi timeframe strategy?

    I have a situation where I do the following:

    1) I add three different bars to my strategy (they are different volume sized bars of the same symbol)

    2) I have a dataseries where I add the closing price from one bar type to the data series (but i dont add to the data series on the other two bar types)

    3) When I check the data series, there are quite a few 0 values at the end of the data series where i can see I have added several sequential non-zero values over the last three bars of that type received.


    Does the index/incrementation of a DataSeries object get advanced by each bar type added? Or is there some other weird behavior related to dataseries in multitimeframe strategies?

    Thanks,
    Brandon

    #2
    Brandon,

    The DataSeries is tied to the primary bar series only. If you wish to tie it to a different bar series please see this reference sample: http://www.ninjatrader-support2.com/...ead.php?t=3572
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Good god I should have resorted to asking this question here much earlier. That explains the hours of erratic behavior i have been trying to understand...

      Anyway, that worked quite well, thanks for the info.

      I think there must be an easier way to achieve what I'm trying to do, but this approach is effective.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      115 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      161 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      83 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      127 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      87 views
      0 likes
      Last Post PaulMohn  
      Working...
      X