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 StockTrader88, 03-06-2021, 08:58 AM
      45 responses
      3,992 views
      3 likes
      Last Post johntraderuser2  
      Started by TAJTrades, Today, 09:46 AM
      0 responses
      7 views
      0 likes
      Last Post TAJTrades  
      Started by rhyminkevin, Yesterday, 04:58 PM
      5 responses
      62 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by realblubb, Today, 09:28 AM
      0 responses
      8 views
      0 likes
      Last Post realblubb  
      Started by AaronKoRn, Yesterday, 09:49 PM
      1 response
      19 views
      0 likes
      Last Post Rikazkhan007  
      Working...
      X