Prop Preflight

Level 4 · Testing honestly

Walk-forward testing

6 min readUpdated Oct 22, 2026

You'll be able to set up a walk-forward test and read its combined out-of-sample results.

Walk-forward testing repeats a simple cycle through history: choose settings on one window of data, then test them on the next window that wasn't used to choose them. The test windows, stitched together, form an out-of-sample record.

The cycle

Example (hypothetical, four years of data).

Step Choose settings on Test on
1 Year 1 First half of year 2
2 Year 1.5 to 2.5 (rolled forward) Second half of year 2
3 Rolled forward again First half of year 3
... ... ...

Each test window uses only settings chosen from earlier data, so the stitched test results simulate how the strategy, including its process of choosing settings, would have performed going forward.

What it shows

  • Whether the settings-choosing process works, not just whether one set of settings fit the past.
  • Stability: do chosen settings jump around wildly from window to window? If so, the "optimal" values are mostly noise.
  • Degradation: how much worse test windows are than the choosing windows.

Limits

  • It still uses one history, and every walk-forward design choice (window lengths, what is optimized) is itself a choice that can be tuned. Decide them in advance.
  • Short windows mean few trades per window, so results are noisy.
  • Running many walk-forward designs and picking the best reintroduces overfitting.

Takeaways

  • Walk-forward chooses settings on past windows and tests on the following ones.
  • The stitched test windows form an out-of-sample record of the whole process.
  • Fix the design in advance and watch for unstable chosen settings.

Common misconceptions

  • "Walk-forward eliminates overfitting." It reduces it; design choices can still be tuned.
  • "The latest optimized settings are the best to trade." If settings jump around, none of them is reliably best.

Check your understanding

1. In walk-forward testing, which data is each test window's settings chosen from?
Answer

Only earlier data. That keeps each test out of sample.

2. Chosen settings change wildly from window to window. What does that suggest?
Answer

The optimal values are mostly noise. Stable edges produce stable settings.

3. Why fix walk-forward window lengths in advance?
Answer

Choosing them after seeing results is another form of overfitting. Design choices are parameters too.

Saved in this browser only.

Related

Sources

Education only, not advice. Futures trading uses leverage, and losses can exceed the money in an account. Examples are hypothetical unless a source is given.