What problem does it solve?
Walk-forward validation prevents misleading backtest results caused by lookahead bias, overlapping labels, and serial correlation when evaluating trading strategies and time-series ML models.
Core Features & Use Cases
- Time-series aware splitting (rolling/expanding windows): Generates realistic train/test folds that move forward in time to mirror how a model would be deployed.
- Leakage controls (purging + embargo): Removes training samples with overlapping label horizons and applies a buffer gap to reduce correlated leakage across the split boundary.
- Overfit detection for strategy research (CPCV + DSR/PBO): Uses combinatorial purged cross-validation to produce many test paths, then quantifies multiple-testing-driven overfitting via Deflated Sharpe Ratio and Probability of Backtest Overfitting.
- Crypto and regime considerations: Offers practical window sizing guidance and regime-aware validation thinking tailored to 24/7 markets.
Quick Start
Run walk-forward validation on your strategy’s historical returns using a rolling or expanding window with a purge horizon and an embargo window to obtain out-of-sample Sharpe and drawdown per fold.