For example, if I run a WFO with the following settings:
a) optimization period of 365 days
b) test period of 90 days
c) and the strategy runs on daily bars, with a BarsRequiredToTrade setting of 30
Currently, the dataseries gets processed like this:
<- BarsRequiredToTrade (30 bars) -><- Optimization Period (365 minus 30) -><- BarsRequiredToTrade (30 bars) -><- test period (90 - 30 ) ->
The "Test Period" actual executions should be contiguous to the "Optimization Period" by having the Test Period's dataseries padded with more bars before the start of the Test Period equal to the BarsRequiredToTrade parameter so trades can be taken immediately following the Optimization Period.
As it works now, if my BarsRequiredToTrade for the example above was 90. You would never get any executions and the walk-forward optimization would return zero trades.
Comment