entekhab.netentekhab.nettrilingual encyclopedia

Walk-Forward Testing

ENGLISHWalk-Forward Testingreference
فارسیآزمون پیش‌روRecommended equivalent
کوردیتاقیکردنەوەی پێشەوەProposed equivalent — not standard
Category
Algorithmic Trading
Level
Expert

Simple definition

Fitting a rule on an early slice of data, then testing it on the slice that comes next, then sliding the windows forward and repeating. Each test period was never used to choose the rule.

Professional definition

A validation protocol that alternates in-sample fitting with strictly subsequent out-of-sample evaluation, then rolls both windows forward. The concatenated out-of-sample segments form the result that is reported; the in-sample segments are where parameters were allowed to be chosen.

Technical definition

Two window designs are standard. An anchored design keeps the in-sample start fixed and expands it, so later fits use all prior history. A rolling design holds the in-sample length constant, so the fit forgets distant data and tracks changing conditions. Each produces a sequence of out-of-sample segments that are joined into a single equity path. The protocol is the minimum honest standard for a historical result, not a guarantee: searching across many walk-forward configurations re-introduces selection, and the out-of-sample segments remain a single historical sample.

Academic definition

A sequential validation scheme in which parameters are estimated on a training window and evaluated only on strictly later observations, with both windows advanced through the sample to produce a concatenated out-of-sample performance path.

Mechanism

The protocol works by denying the fitting procedure access to the data that will judge it. Parameters are allowed to see only the training window, so each out-of-sample segment is a genuine forecast of a period the rule had never met. Joining those segments gives a path that search effort inside each window cannot flatter, provided the protocol itself was fixed in advance.

In practice

Who uses it
Systematic researchers validating a parameterised rule, risk functions reviewing a model, and anyone reporting a historical result to others.
Why it matters
It is the cheapest way to make a result falsifiable: the rule must perform on periods it was never allowed to see.
Limitations
It bounds in-window selection, nothing more. Costs still have to be modelled honestly, the protocol itself can be search-tuned, folds overlap in regime, and the whole exercise remains one history.

Common mistakes

  • Re-optimising after seeing the out-of-sample result and running it again.
  • Reporting only the best of several window configurations.
  • Using so short an out-of-sample window that each fold holds few trades.

Examples

market

An anchored design judges a rule against every regime since the start of the data. A rolling design judges it against the most recent conditions only. The same rule can pass one and fail the other.

numeric

Ten years of data with a two-year fit window, a six-month test window and a six-month step gives sixteen folds and eight years of joined out-of-sample record. Only that eight years is reportable.

Given
  • total history = 10 years
  • in-sample window = 2 years
  • out-of-sample window = 6 months
  • step = 6 months, rolling design
Steps
  1. usable span after the first fit = 10 - 2 = 8 years
  2. folds = 8 years / 0.5 years per step = 16
  3. joined out-of-sample record = 16 x 0.5 = 8 years
16 folds producing 8 years of out-of-sample record

Fold count is arithmetic, not evidence. Sixteen folds drawn from one decade still describe one history, and adjacent folds share market regimes.

Related terminology

related
Backtesting Overfitting Lookahead Bias Drawdown Sharpe Ratio
Commonly confused with

Overfitting

Overfitting is the failure. Walk-forward testing is a procedure that limits one route to it, by keeping the evaluation data out of the fitting step. It does not detect overfitting that happens across configurations of the procedure itself.

Sources

Technical Analysis: Modern Perspectives
CMT Association · chapters on out-of-sample validation of rule-based methods
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
CMT Program Guide 2026
CMT Association · system testing and validation topics
https://cmtassociation.org/wp-content/uploads/2026/03/2026-CMT-Program-Guide_v2026.3.5.pdf URL verified
Portfolio Performance Evaluation (refresher reading)
CFA Institute · principles for evaluating performance records
https://www.cfainstitute.org/insights/professional-learning/refresher-readings/2026/portfolio-performance-evaluation URL verified

Editorial status

Needs expert reviewindustry-conventionv1.02026-11-03

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

Window designs and terminology vary between practitioners and platforms; the anchored and rolling designs described here are the two common conventions, and no single standard parameterisation exists. The entry states explicitly that the protocol is a minimum standard rather than a guarantee. The fold arithmetic in the example is illustrative. The Kurdish headword follows this corpus's wording for the concept and remains a proposal needing native-expert review.