VEEMAN
← All resources

Resources · validation · overfitting · backtesting

How to validate a trading strategy before risking capital

A good-looking backtest is cheap. This guide walks the statistical checklist that separates edge from sample luck: out-of-sample discipline, deflated Sharpe ratios, the probability of backtest overfitting, Monte Carlo stress and live monitoring.

Updated 2026-07-11 · 9 min read

The uncomfortable baseline: good backtests are cheap

If you try enough configurations, the best backtest will look brilliant by construction. The expected maximum Sharpe ratio among N random, skill-less trials grows with N — so a strategy picked out of a parameter grid has already won a tournament, and its score must be judged against that tournament, not against zero. Bailey, Borwein, López de Prado and Zhu called the practice of ignoring this "pseudo-mathematics and financial charlatanism", and showed how easily overfit backtests turn into out-of-sample losses (Bailey et al., 2014). Harvey, Liu and Zhu reached a parallel conclusion for academic factors: after adjusting for how many were tried, most published "significant" results don't clear the bar (Harvey, Liu & Zhu, 2016).

None of this says your strategy is fake. It says the default hypothesis for any attractive backtest is selection luck — and validation is the process of paying down that hypothesis with evidence.

Step 1 — Freeze the protocol before touching the data

Decide in advance: the metric you'll judge (and the benchmark it must beat), the sample and its costs (commissions, slippage, the fills you actually get), and what would make you reject the strategy. Every degree of freedom you leave open — "let's see which stop works" — is a trial you'll have to deflate for later. Keep a count of everything you try: the honest N is the input every test below needs.

The silent trial counter

Excluding a weekday, adding a volatility filter, trying three stops: each is a trial. The gravest validation error is not a wrong formula — it is reporting the winner of fifty attempts as if it were the only one.

Step 2 — Hold out data like you mean it

A single train/test split is better than nothing but fragile: one lucky test window proves little. Rolling out-of-sample windows turn holdout into a procedure — select on a window, evaluate on the next unseen one, roll forward — so what gets tested is your decision process, not one frozen parameter set. Read the stitched out-of-sample segments as the realistic track record; the in-sample ones only tell you what the optimizer wanted to see.

Step 3 — Deflate the score for the search you ran

Two corrections translate "it looks good" into a probability:

  • The probabilistic Sharpe ratio asks whether the measured Sharpe is distinguishable from your benchmark at all, given the sample length and the skew and fat tails of the returns (Bailey & López de Prado, 2012).
  • The deflated Sharpe ratio raises the benchmark to what pure selection among your N trials would produce, and asks whether the winner still clears it (Bailey & López de Prado, 2014). This is where the honest trial count from Step 1 gets used.

Step 4 — Test the selection process itself

The probability of backtest overfitting takes the opposite view: instead of scoring one strategy, it scores your ranking process. Across many symmetric train/test partitions of the data, how often does the configuration that wins in-sample fall below the median out-of-sample? A PBO near 50% means your selection carries no information (Bailey, Borwein, López de Prado & Zhu, 2017). White's Reality Check (White, 2000) asks a related question for data snooping across a family of rules.

Step 5 — Stress the sample you have

Even a genuine edge has only printed one history. Monte Carlo simulation re-generates it thousands of times — with a block bootstrap so streaks and volatility clustering survive the resampling — and reads the distribution instead of the anecdote: percentile bands, the realistic range of maximum drawdowns, and the probability of ruin at the size you intend to trade. Tails scale non-linearly with leverage; a strategy that survives one contract can be un-tradable at three.

Step 6 — Validation doesn't end at go-live

Markets drift. A CUSUM detector accumulates small deviations of live performance from the validated baseline and raises a calibrated alarm when the process has plausibly changed (Page, 1954) — with an explicit false-alarm budget, so "is it broken or is it a drawdown?" becomes a budgeted decision instead of a 2 a.m. feeling.

Where VEEMAN fits

This checklist is what the platform implements: out-of-sample checks with an anti-overfitting battery (PSR, DSR, PBO), Monte Carlo at your size, and Equity Control for the live phase. The docs state every formula exactly as the engine computes it.

The checklist

  1. Protocol frozen before testing: metric, benchmark, costs, rejection rule.
  2. Honest trial count N recorded — every variant, filter and re-run.
  3. Out-of-sample discipline: rolling windows, never a single lucky split.
  4. PSR against your benchmark, at your sample length and tail shape.
  5. DSR against the N trials you actually ran.
  6. PBO of the selection process below your tolerance — not near a coin flip.
  7. Monte Carlo (block bootstrap) at intended size: drawdown distribution and ruin.
  8. A live change detector (CUSUM) with a declared false-alarm budget, and a pre-committed reduce/stop rule.

References

  • Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5).
  • Bailey, D. H., & López de Prado, M. (2012). The Sharpe Ratio Efficient Frontier. Journal of Risk, 15(2). — source of the probabilistic Sharpe ratio.
  • Bailey, D. H., & López de Prado, M. (2014). The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting, and Non-Normality. Journal of Portfolio Management, 40(5).
  • Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2017). The Probability of Backtest Overfitting. Journal of Computational Finance, 20(4).
  • Harvey, C. R., Liu, Y., & Zhu, H. (2016). …and the Cross-Section of Expected Returns. Review of Financial Studies, 29(1).
  • White, H. (2000). A Reality Check for Data Snooping. Econometrica, 68(5).
  • Page, E. S. (1954). Continuous Inspection Schemes. Biometrika, 41(1/2).

The cited sources are real academic literature: the linked docs pages show how VEEMAN implements these concepts, numbers in hand.