Walk-Forward Analysis
What is Walk-Forward?
Section titled “What is Walk-Forward?”Walk-forward analysis is a robust optimization technique that:
- Optimizes on a historical window (in-sample)
- Tests on the next period (out-of-sample)
- Rolls forward and repeats
This simulates how a strategy would perform if you re-optimized periodically.
How It Works
Section titled “How It Works”|-------- In-Sample --------|-- Out-of-Sample --|| Optimize here | Test here | ↓ Roll forward ↓ |-------- In-Sample --------|-- OOS --| ↓ Roll forward ↓ |-------- In-Sample --------|-- OOS --|Configuration
Section titled “Configuration”| Parameter | Description | Typical Value |
|---|---|---|
| In-Sample Period | Optimization window | 2-3 years |
| Out-of-Sample Period | Validation window | 6-12 months |
| Step Size | How far to roll forward | Same as OOS |
Running Walk-Forward
Section titled “Running Walk-Forward”- Go to Strategies > Optimize
- Select Walk-Forward method
- Configure windows
- Run optimization
Interpreting Results
Section titled “Interpreting Results”Efficiency Ratio
Section titled “Efficiency Ratio”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
Consistency
Section titled “Consistency”How often the strategy is profitable in OOS periods.
- 4/4 periods profitable = Very robust
- 2/4 periods profitable = Questionable
Degradation
Section titled “Degradation”How much performance drops from IS to OOS.
- < 30% drop = Normal
-
50% drop = Likely overfit
Benefits
Section titled “Benefits”- Realistic Performance Estimates - Closer to live trading
- Detects Overfitting - Overfit strategies fail OOS
- Parameter Stability - Shows if optimal params change
Next Steps
Section titled “Next Steps”- Best Practices - Optimization guidelines
- Backtesting - Test final parameters