Understand it
Walk-forward analysis repeats a simple discipline: choose or tune the rules on an in-sample window, trade them unchanged on the following out-of-sample window, then roll both windows forward. The strategy is judged only on the joined out-of-sample segments.
Monte Carlo resampling asks how bad things could have been with the same trades in a different order. Reshuffling or resampling the trade list gives a distribution of drawdowns; the bad tail of that distribution, not the single historical path, should drive position size.
Take a hypothetical list of 60 trades: 22 winners of +2R and 38 losers of −1R, a total of +6R. In the order they happened, the worst peak-to-trough drawdown was 10R.
Reshuffling the same 60 results 2,000 times keeps every trade but changes the order. The median worst drawdown across the reshuffles was 9R, and 5% of orderings produced 14R or worse.
Plan your risk around the 14R figure, not the 10R you happened to see. Then add a margin, because future trades will not be an exact copy of past ones.
Walk-forward testing applies the same humility to the rules: choose parameters on one window, trade them unchanged on the next, roll forward, and judge the strategy only on the stitched-together out-of-sample results.
| Window | Choose rules on | Trade unchanged on |
|---|---|---|
| 1 | Months 1–24 | Months 25–30 |
| 2 | Months 7–30 | Months 31–36 |
| 3 | Months 13–36 | Months 37–42 |
Watch for this misconception
Treating the historical maximum drawdown as the worst case. It is one draw from a distribution and is usually exceeded eventually.
Run the drawdown simulator with your own win rate and payoff. Size your risk so the 95th-percentile drawdown is a loss you could accept.
Drawdown simulator ↗In walk-forward testing, what is the strategy judged on?
Go deeper
- Bailey, Borwein, López de Prado & Zhu (2014): Pseudo-Mathematics and Financial Charlatanism, Notices of the AMS ↗
- White (2000): A Reality Check for Data Snooping, Econometrica ↗
- Harvey, Liu & Zhu (2016): …and the Cross-Section of Expected Returns, Review of Financial Studies ↗
Hypothetical educational examples on synthetic numbers. Verify current product specifications and rules before making decisions.