Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Multi instrument backtesting on non-existing data
Collapse
X
-
Hello lookOutBelow,
If you require 15 bars of data to process this strategy how you would like you may want to add your own CurrentBars check but check for the series that you do not have data for until 2008 separately and still use Bars Required 0.
Let me know if this works like you are wanting it to.
-
It will fail if I change it to 0. The data for the other instruments (that have data to 2005) are looking back as far as 15 weeks. I guess I can eliminate that, to test it out.
Leave a comment:
-
Hello lookOutBelow,
In your Strategy Parameters can you change the "Bars Required" to "0" to have your strategy try to process this right away.
Leave a comment:
-
I did have logic to it, but before posting this message, I removed any attempts to access the data or attempts to trade on that symbol. The only thing left in the code was the adding of the instrument.
Add("EDV",PeriodType.Week,1);
As soon as I comment this line out, it works as I would expect it to (back to 2005).
Leave a comment:
-
Hello lookOutBelow,
Are you using the DataSeries that you do not have any data for until 2008 in your logic or are you submitting your orders to that Series?
Leave a comment:
-
Hi JC,
No, I do not have a CurrentBars check. I tried it to see what would happen, but it didn't change the results.
Leave a comment:
-
Hello lookOutBelow,
NinjaTrader will process your strategy (OnBarUpdate) as long as you have Historical Data for the other instrument, but it sounds like you are using that DataSeries in your logic or the Series that you are submitting your orders to.
Do you have a CurrentBars check at the beginning of your strategy?
Leave a comment:
-
Multi instrument backtesting on non-existing data
I am playing around with a strategy that trades off of weekly bars. The strategy is adding multiple instruments
I'm back testing from 2005. One of the instruments only has data back to 2008. When I run strategy analyzer, it only gives me results from 2008 on. Is there a way to force the back test from 2005, but ignoring the instrument that doesn't have data from 2005-2007?
ThanksTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
2 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
943 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Leave a comment: