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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X