Skip to content

Walk-Forward Analysis

Walk-forward analysis is a robust optimization technique that:

  1. Optimizes on a historical window (in-sample)
  2. Tests on the next period (out-of-sample)
  3. Rolls forward and repeats

This simulates how a strategy would perform if you re-optimized periodically.

|-------- In-Sample --------|-- Out-of-Sample --|
| Optimize here | Test here |
↓ Roll forward ↓
|-------- In-Sample --------|-- OOS --|
↓ Roll forward ↓
|-------- In-Sample --------|-- OOS --|
ParameterDescriptionTypical Value
In-Sample PeriodOptimization window2-3 years
Out-of-Sample PeriodValidation window6-12 months
Step SizeHow far to roll forwardSame as OOS
  1. Go to Strategies > Optimize
  2. Select Walk-Forward method
  3. Configure windows
  4. Run optimization

Compares out-of-sample to in-sample performance.

  • > 0.5 = Good (OOS performance is at least half of IS)
  • > 0.7 = Excellent
  • < 0.3 = Strategy may be overfit

How often the strategy is profitable in OOS periods.

  • 4/4 periods profitable = Very robust
  • 2/4 periods profitable = Questionable

How much performance drops from IS to OOS.

  • < 30% drop = Normal
  • 50% drop = Likely overfit

  • Realistic Performance Estimates - Closer to live trading
  • Detects Overfitting - Overfit strategies fail OOS
  • Parameter Stability - Shows if optimal params change