I don't quite get you. Isn't the continuous contract always plotting the front month? For now, it is plotting CL 05-15.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnBarUpdate is not fired in Multi Instrument Backtest.
Collapse
X
-
Hello vhanded,
Thank you for your response.
Correct, the continuous will generally be the current front month or the most active contract as determined by the data provider. What I wanted to check here is if any contract past what is being used as the current can cause this. However, as you have tested for just the year of 16 contracts and found the prints to be displayed we will need to continue to investigate this further.
I will follow up with you when I have further details.
Comment
-
Hi,
I'm also having a similar problem. In my case, I'm trying to run a stock rotation strategy with hundreds of symbols and daily bars. Of course, over these hundreds of symbols, not all of them have data going back the same amount (due to spin-offs and recent IPOs for example).
As such, I am unable to perform any backtesting without manually looking up and removing stocks on an individual basis (which is not feasible on such a large universe of stocks).
Through coding, I am able to avoid "index out of bounds" errors by using CurrentBars[i]. However, if NT won't start calling OnBarUpdate() until all the series have been populated (even with BarsRequired = 0), there's not much I can do.
So is there no workaround for this problem, and if not, can you confirm that a fix will be available in NT8?
Thanks
Comment
-
Hello wuileng,
Thank you for your post.
NinjaTrader 8 will feature improved performance. However, keep in mind that large sets of instruments may not be supported from your data provider as some will have limitations on the number of instruments that can be requested at once.
Who do you connect to for data?
How many instruments do you request?
Comment
-
Thanks, for the reply.
I'm aware of those limitations. For live trading purposes I would likely limit the strategy to 300-500 instruments and will use my Barchart connection for it (up to 500 simultaneous symbols). There is also no problem with live trading, as I can pull the current S&P 500 and all symbols will be current and populated (thus not encountering said problem).
What I find disappointing though, is the inability to backtest any portfolio strategy without manually looking up when each data series starts and removing those which are "limiting" the backtest.
If there is no workaround, is there at least a way for me to throw all the symbols in and have it somehow list the ones which are "limiting" the backtest? This would solve the problem as I could put that list into Excel and sort, or at least, it would save me the time having to look up each data series in Historical Data Manager to check the start dates.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
139 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment