Forex glossary

Walk-forward analysis

Walk-forward analysis repeatedly selects parameters on an earlier window and tests them on the following period, then advances the split through time. It combines out-of-sample results under explicit cost and reoptimization rules. It evaluates the procedure without eliminating overfitting or constituting a live-account test.

Illustrative example

How does it work in practice?

Assume parameters are selected on January–March data and tested in April, then selected on February–April and tested in May. Each test uses previously chosen parameters; the April and May results are combined.

A case to work through

The test becomes part of selection

Hypothetically, parameters are selected on bars 1–100 and evaluated on 101–120.

  1. Viewing 101–120 and revising rules to improve it reuses test data.
  2. The new version needs a later evaluation window under the written procedure.

What follows? Do not present an improved result on that same window as an untouched test.

Example boundary: Repeated revisions can fit the whole procedure; walk-forward does not automatically remove this.

Chronological separation

Chronological separationRevising after viewing a test creates a new method version.1Earlier windowSelect parameters under the written procedure.2Later testFreeze parameters and assess subsequent data.3Advance windowsRepeat without using the future test for selection.
Revising after viewing a test creates a new method version.
Text description of the diagram
  1. Earlier window: Select parameters under the written procedure.
  2. Later test: Freeze parameters and assess subsequent data.
  3. Advance windows: Repeat without using the future test for selection.

A useful distinction

Walk-forward analysis / Backtesting

A backtest can assess one historical sample; walk-forward advances selection and subsequent evaluation windows.

Check your understanding

Recognize reuse of out-of-sample data.

Selection uses bars 1–50. Which window can serve as a later nonoverlapping test?

Show the answer and explanation

51–60

Every bar follows the selection window.

From a plan to automation tests

Step 10 / 12 · 0 / 12 reviewed

View the full sequence →

Progress is saved only in this browser.

Sources and documentation

The example illustrates the mechanism. Check current account conditions and instrument specifications with the provider.

Read this term in Polish →

This definition is unclear — send feedback

Feedback goes to the editorial team. Do not include account details, personal data or contact information.

← Back to the glossary