Backtest Lab
Robustness Toolkit
A single equity curve tells you almost nothing. The Lab ships four tools to tell you whether a result is real — use them, that's the point of the Lab.
The four tools
- Walk-forward — splits history into rolling (or anchored) train/test windows: sweep on train, pick the best combo by your selection metric, run it out-of-sample on test, then stitch the OOS segments into one curve. Mean degradation (OOS versus IS) is the honest number — a strategy that keeps ~70% of its in-sample performance out-of-sample is interesting; one that keeps 10% is fit to noise. The analytics also report WF efficiency and how many of the windows actually produced an OOS segment (OOS windows).
- Holdout lockbox — reserve the last N% of your date range (Configure's Holdout field). The sweep never sees it. When you've finished iterating, hit Validate on holdout — once. If you iterate against the holdout, it stops being a holdout.
- Monte Carlo — bootstraps your trade sequence into a fan of equity paths with a risk of ruin estimate. Your backtest is one draw from a distribution; the fan shows you the distribution (final p5/p50/p95, and max-drawdown p50/p95). Size positions off the p5 path, not the median.
- Deflated Sharpe (DSR) — corrects the Sharpe ratio for how many combos you searched. A 2.0 Sharpe found by testing 5,000 combos is worth far less than one found by testing 10. If DSR is near zero, your leaderboard winner is likely a selection artifact.
The workflow that gets the most out of the Lab
- Build the simplest version of the idea on one symbol. No parameters.
- Add parameters and sweep small. Look at the heatmap for plateaus, not peaks.
- Check DSR before falling in love with a leaderboard row.
- Walk-forward anything that survives. Degradation is the metric that matters.
- Monte Carlo the survivor to size it.
- Validate on holdout exactly once, at the end.
- Try it in portfolio mode to see how it behaves sharing capital.