All TermsConcept

Walk-Forward Analysis

Walk-forward analysis is a backtesting methodology where the strategy is repeatedly optimised on an in-sample window, tested on the immediately following out-of-sample window, and the windows are rolled forward through history. The aggregate of all out-of-sample results is the realistic performance estimate.

How it works

  1. Split history into many overlapping windows (e.g. 2 years training + 6 months test).
  2. Optimise parameters on the training window.
  3. Apply those parameters to the test window — record the result.
  4. Roll forward 6 months, repeat.
  5. The concatenation of all test windows is the walk-forward equity curve.

Why it matters

A normal backtest is a one-shot optimisation — you only know how the strategy did with hindsight-tuned parameters. Walk-forward simulates the realistic process: you didn't know the future when you set the parameters.

What to look for

  • Walk-forward efficiency (WFE) — out-of-sample return / in-sample return. WFE > 60% is acceptable; > 80% is excellent.
  • Stability of parameters across windows — if optimal length jumps from 9 to 47 every six months, the strategy isn't robust.

Related Terms

Stop Reading. Start Trading.

PineForge backtests every concept on this site against real market data.

Try It Free

We use cookies for analytics and ads measurement. See our privacy policy.