If minute data is available during this point in backtest use it, if not, use daily data? Like Closes[1][0] or Closes[0][0]
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How far back a dataseries goes
Collapse
X
-
How far back a dataseries goes
Hi guys, I have a question about backtesting a secondary series. I want to write some code that would do this:
If minute data is available during this point in backtest use it, if not, use daily data? Like Closes[1][0] or Closes[0][0]Tags: None
-
Hello elitetradernyc,
Not really sure what exactly you are trying to accomplish, but if you have no Minute Data NinjaTrader will not load the second series at all.
Are you trying to see if you are trying to see if you are missing minute data from a certain point?
Happy to be of further assistance.JCNinjaTrader Customer Service
-
Hi, for example, I have minute data going back to 2009 so i want the code to use that series if available, if its not available, i want it to use daily data, which goes back to 1993, so daily from 1993-2008 and minute for this particular if statement from 2009-2013.
Comment
-
Thanks for the clarification.
It would not be possible to dynamically check if the series is available and then use another series. Both bars arrays will be attempted to loaded at the same time. If your bars required are not met in either series, OBU will not be processed.MatthewNinjaTrader Product Management
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
33 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
184 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
343 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
264 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment