Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rows in Output is not in the correct sequence

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

    Rows in Output is not in the correct sequence

    When I backtest my strategy against the DOW 30 folder, I print each bar that I receive. I expected the data to be printed in the output in the same sequence as the sequence of the instruments; however this is what I get:
    2009-09-04T16:00:00 Instrument=AA BarsInProgress=1 Close[0]=12.18
    2009-09-04T16:00:00 Instrument=BAC BarsInProgress=1 Close[0]=17.09
    2009-09-08T16:00:00 Instrument=AA BarsInProgress=0 Close[0]=12.6
    2009-09-08T16:00:00 Instrument=BAC BarsInProgress=0 Close[0]=17.02
    2009-09-09T16:00:00 Instrument=BAC BarsInProgress=0 Close[0]=17.04
    2009-09-09T16:00:00 Instrument=AA BarsInProgress=0 Close[0]=12.81

    Shouldn't all "AA" be printed before all "BAC"?

    Attached is the strategy.
    Attached Files

    #2
    No, since backtesting of a basket of instrument is multi-threaded with NT7. Multiple instruments are backtested at a time.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    252 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    161 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    165 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    251 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    203 views
    0 likes
    Last Post CarlTrading  
    Working...
    X