Skip to content
Menu
Finabase Learn

Glossary

Walk-forward analysis

A way to test a trading rule by choosing its settings on past data, trading them on the next stretch, then moving forward and repeating.

On this page
  1. Why it helps
  2. What it cannot do
  3. Related terms

Walk-forward analysis tests a trading rule the way it would have been used. You choose the rule's settings on one stretch of history, the in-sample or training window, then trade those settings on the next stretch, the out-of-sample or test window, which played no part in the choice. Then both windows move forward and the step repeats. Joining the test windows end to end gives one track record built without hindsight. Robert Pardo's books made it standard among system traders.

Why it helps

A plain backtest on the data used to pick a rule mostly measures how well it was fitted. Walk-forward analysis keeps the choosing and the judging apart, and shows how much the best setting drifts over time. Settings that jump around from round to round are a warning sign.

What it cannot do

  • Held-back data gets used up. Once a test-window result is used to change the rule, that window is no longer out of sample.
  • The window lengths are choices too, and trying many of them is another search.
  • Few rounds are few data points. Five rounds is five results.
  • It does not fix Survivorship bias, ignored costs, or a market unlike any in the history.

Sources and further reading

  1. Robert Pardo, The Evaluation and Optimization of Trading Strategies, 2nd ed. (Wiley, 2008) — walk-forward analysis
  2. Finabase chart data — SPY monthly bars, January 1995 to October 2026; rules and results computed by Finabase

Written and fact-checked by Finabase Research. Last reviewed . Spotted an error? Tell us.

Educational content, not investment advice. Finabase Learn explains how markets and tools work. It does not recommend any security or strategy, and examples are for illustration only. Investing involves risk, including the loss of principal. Rules and figures are for the United States unless stated and can change — check the cited source before you act. Data and corrections policy.