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 trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      9 views
      0 likes
      Last Post guillembm  
      Started by junkone, 04-21-2024, 07:17 AM
      9 responses
      69 views
      0 likes
      Last Post jeronymite  
      Started by mgco4you, Yesterday, 09:46 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X