Walk-Forward Analysis
Repeatedly optimise on the past and test on the next slice — the gold standard for honesty.
Walk-forward analysisRepeatedly optimising on the past and testing on the next slice. is the gold standard for honestly testing a strategy that has parameters to tune. It repeatedly optimises on a past window, then tests on the next unseen window — then rolls forward and repeats — stitching together a track record made entirely of out-of-sample results.
- How it works — optimise on a past window, test on the next unseen window, roll forward, repeat; concatenate the out-of-sample results.
- Why it’s honest — every traded period was genuinely out-of-sample at the time, mimicking real re-optimisation.
- Bonus diagnostic — if optimal parameters jump wildly across windows or OOSTesting a strategy on data it was never built on. results collapse, you’ve exposed overfitting.
- The cost — computationally heavy, but the most realistic estimate of live performance.
Walk-forward vs a single out-of-sample test — is it worth the effort?
For any strategy with tunable parameters, yes — a single split tests one slice of luck, while walk-forward tests your *ongoing process* of optimising and trading across many regimes, giving a far more realistic and robust estimate. It’s more work, but it’s the difference between “it worked on one held-out period” and “it kept working as I re-optimised through history.”