Correct - all of the Minimum Bars required for each series needs to be satisfied for OnBarUpdate to run your backtest. In the case where historical data is missing for one instrument, you will not see it run until the historical data is available for all.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multiple instruments & event firing order
Collapse
X
-
Multiple instruments & event firing order
Hi all,
Correct - all of the Minimum Bars required for each series needs to be satisfied for OnBarUpdate to run your backtest. In the case where historical data is missing for one instrument, you will not see it run until the historical data is available for all.Tags: None
-
Hello tuanhuy, and thank you for your question.
This is the responsibility of the programmer to check. The strategy will run even if these are not satisfied. However, trades placed before the bars required to trade have passed will be rejected, disabling the strategy, and referencing BarsAgo indexes before there is data to satisfy them will result in runtime log messages that disable your strategy as well.all of the Minimum Bars required for each series needs to be satisfied for OnBarUpdate to run your backtest
OnBarUpdate will process for the instruments you do have historical data for. You as a programmer can run a check to see that every member of CurrentBars has at least one bar available if you would like what you said to be true. This check looks likeIn the case where historical data is missing for one instrument, you will not see it run until the historical data is available for all.
Please let us know if there are any other ways we can help.Code:foreach(int i in CurrentBars) { if (i < 1) { return; } }Jessica P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
569 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment