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 aussugardefender, Today, 01:07 AM
      0 responses
      1 view
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      238 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      9 responses
      383 views
      1 like
      Last Post Gavini
      by Gavini
       
      Started by oviejo, Today, 12:28 AM
      0 responses
      1 view
      0 likes
      Last Post oviejo
      by oviejo
       
      Started by pechtri, 06-22-2023, 02:31 AM
      10 responses
      125 views
      0 likes
      Last Post Leeroy_Jenkins  
      Working...
      X