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 NullPointStrategies, Today, 05:17 AM
      0 responses
      23 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      120 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X