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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
650 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 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
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment