What is the best way to preform a WFA over several year of 3 month contracts? How can i prevent the strategy holding a position over a contract roll?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Walk Forward Analysis over contract roll
Collapse
X
-
-
GKonheiser, would your script hold overnight? NT7 would automatically roll for you with the merging enabled (which would per default). It has rollover dates stored and transparently merges then past historical data into your current contrat's data request. An alternative would be using the ##-## contracts where the rollovers are defined server side by the provider and so one continuous contract is offered.BertrandNinjaTrader Customer Service
-
Hi Bertrand,
Yes my strategy has overnights. So when would it roll by default, the last day? How does it handle the stops then if there is a big difference in the price?
Thanks
Comment
-
Thanks GKonheiser - it would not automatically roll your position / execute on another frontmonth as the you will work from the current expiry but just get historical data merged in when you data request goes over the limits provided by the contract. The rolldates set per default can all be reviewed under Tools > Instrument Manager > in the Edit > Misc section for each master instrument. For equity futures those will coincide with the CME published ones.BertrandNinjaTrader Customer Service
Comment
-
Bertrand what happens if I have merge policy set to do not merge and I do a WFA over several contracts with say 100 days in sample and 30 days out of sample, how will it be handled. What will the analyser do with positions that are open at the end of a contract?
Comment
-
With the merge option set to do not merge > you do not have the ability to walk forward over the individual contract boundaries, the open position at the end of the data set then would be closed as the backtesting is finished. Same as you would see for regular testing in the Strategy Analyzer.BertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jxs_xrj, 01-12-2020, 09:49 AM
|
6 responses
3,290 views
1 like
|
Last Post
by jgualdronc
Today, 10:56 AM
|
||
Started by Touch-Ups, Today, 10:36 AM
|
0 responses
8 views
0 likes
|
Last Post
by Touch-Ups
Today, 10:36 AM
|
||
Started by geddyisodin, 04-25-2024, 05:20 AM
|
11 responses
61 views
0 likes
|
Last Post Today, 10:08 AM | ||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by halgo_boulder, 04-20-2024, 08:44 AM
|
2 responses
24 views
0 likes
|
Last Post Today, 09:41 AM |
Comment