A backtest can look good for bad reasons. The usual ones are that many variations were tried and the best one was kept, that information from the future leaked into the test, or that the simulation assumed fills and costs that would not hold in a real market.
We do not approve strategies by committee, and we do not take a single historical simulation at face value. Every candidate goes through the same twelve checks, in order, covering statistics, causality and operations. A strategy that fails one is set aside before it is given any capital. This note describes each check and the thresholds we use. The thresholds are our own rules. Other firms will draw the lines elsewhere.
The 12 Gates
Gate 01: Microstructure Feasibility and Liquidity
A strategy has to be tradable on a real exchange. Before any modeling starts, we filter the universe against the constraints of the venue:
- Tick sizes: Prices are quantized to the exchange's tick increment (e.g., USD 0.25 on E-mini S&P 500 futures, 0.5 bps on US Treasuries). A strategy that depends on prices finer than the venue supports is out.
- Depth and queue position: Average order size cannot exceed 1.5% of the visible Level-2 depth at the inside spread. Backtests simulate pessimistic FIFO queue priority. An order is not assumed filled just because the market touched its limit price.
- Margin: Margin utilization is calculated on full exchange SPAN requirements, not on unmargined notional or a broker's leverage figure, and it has to reflect the margin increases that historically came with volatility spikes.
Gate 02: Held-Out Out-of-Sample Data
One of the main causes of overfitting is the researcher. Adjust parameters against the same history for long enough and the curve will eventually look good. To prevent that, we keep part of the data out of reach:
- In-sample discovery partition: Feature engineering, model design and initial parameter tuning happen only on a designated discovery partition.
- Held-out partition: Tick and daily data from earlier market regimes sit on a separate server that cannot be accessed during discovery.
- One run only: When a strategy has passed the preliminary gates, an automated evaluator runs it once against the held-out data. The run cannot be repeated or adjusted. If performance does not hold up, the strategy is discarded.
Gate 03: Deflated Sharpe Ratio (DSR $\ge 0.95$)
A standard significance test assumes one trial. If a pipeline has tried $N$ parameter combinations, the best Sharpe ratio among them is biased upward. We use the Deflated Sharpe Ratio (DSR) of Bailey and López de Prado to correct for this:
The hurdle $\text{SR}^*$ comes from the extreme value distribution across all $N$ trials in the strategy's research history. We reject any strategy with $\text{DSR} < 0.95$, on the view that its result is more likely a product of the search than of the market.
Gate 04: Placebo Tests
To check that a strategy is picking up real market structure and not noise, we run three placebo controls:
- Phase-scrambled surrogates: The strategy is run against 1,000 synthetic return series, generated by randomizing Fourier phases while preserving the power spectral density and autocorrelation. It should find essentially nothing on these ($\text{Sharpe} \le 0.20$).
- Factor ablation: Each factor in turn is replaced with noise. Removing it must cost at least $\Delta \text{Sharpe} \ge 0.15$. A factor that does not earn its place is dropped.
- Lead-lag inversion: The signal is lagged so that it "predicts" past returns ($t - k$). A factor that shows significance backward in time ($t > 1.50$) is treated as contaminated by lookahead and dropped.
Gate 05: Walk-Forward Efficiency ($WFE \ge 0.65$)
We run walk-forward analysis with both expanding and rolling windows. Walk-Forward Efficiency ($WFE$) is the ratio of annualized out-of-sample return to in-sample return:
We also look at the parameter surface, which should be a smooth plateau. If the Sharpe ratio falls away when a lookback is moved slightly, we treat the chosen value as an overfitted spike and reject it.
Gate 06: Factor Monotonicity Across Regimes
If a factor reflects something real, its effect should be monotonic across ranked quantiles: Decile 10 (the strongest factor exposure) should outperform Decile 9, which should outperform Decile 8, and so on down to Decile 1.
That ordering has to hold in different macro environments:
- Rising-rate periods and low-rate quantitative easing periods.
- High volatility ($\text{VIX} > 25$) and low volatility ($\text{VIX} < 15$).
- Tightening credit spreads and widening credit spreads.
If the sign of a factor flips when the regime changes, we treat it as a regime-dependent beta and reject it.
Gate 07: Market Impact and Cost Stress
A paper simulation that fills at the midpoint has no frictions. A real order takes liquidity and moves the price. We model that with the square-root law of price impact:
Here $Y \approx 0.5$ is a dimensionless constant (the value we use), $\sigma$ is daily volatility, $Q$ is order size, and $\text{ADV}$ is average daily volume.
We then stress the costs: the strategy is evaluated at 2.5x standard exchange fees plus 2x modeled market impact. If the net Sharpe ratio falls by more than 35% under that stress, we reject it as too fragile to costs.
Gate 08: Combinatorial Purged Cross-Validation (CPCV)
Ordinary $k$-fold cross-validation does not suit financial data, because adjacent folds are autocorrelated and information leaks between them. We use Combinatorial Purged Cross-Validation (CPCV) across $\binom{N}{k}$ splits:
- Purging: Training observations whose prediction horizons overlap the test set are removed.
- 10-day embargo: A buffer of 10 trading days follows each test fold, to limit leakage from slowly decaying volatility.
- PBO threshold: The Probability of Backtest Overfitting (PBO) must satisfy $\text{PBO} < 0.05$. If the chance that the best in-sample model underperforms the median model out of sample is above 5%, the strategy is rejected.
Gate 09: Tail Risk and CVaR Limits
Many strategies collect small, steady premiums while carrying a large tail risk that does not show up until it does. This gate sets limits on the downside:
- Conditional Value-at-Risk (CVaR 99%): The 99% expected shortfall cannot exceed 2.2x the portfolio's standard daily volatility.
- Skewness: Return skewness must be positive or close to neutral ($\gamma_3 \ge -0.15$). Strategies with strongly negative skew and fat left tails are rejected.
- Crisis periods: Drawdowns during historical periods of liquidity stress must stay controlled.
Gate 10: Calmar-Weighted Sizing
We do not size positions on the Sharpe ratio alone. It treats upside and downside volatility the same, and it can look healthy for a strategy whose risk sits in a drawdown that has not happened yet. We size by the Calmar Ratio:
In live accounts and multi-strategy allocations, capital is held in separate sub-account partitions. Position sizes are reduced automatically as a strategy's drawdown approaches preset thresholds.
Gate 11: Live Drift Monitoring and Circuit Breakers
Once a strategy is running, in paper trading or with staged capital, it is monitored continuously.
An adaptive Kalman filter tracks the Mahalanobis distance between live market data and the historical distribution. If:
the system treats it as a regime break. Circuit breakers fail closed and reduce positions to neutral automatically. Nobody has to be awake to make that call.
Gate 12: Compiled Execution and Pre-Trade Risk
The last gate is the move from research code to execution. Python research scripts are not allowed to touch the live execution network.
- C++ compilation: The strategy's decision logic is rewritten as a compiled C++ finite state machine with no dynamic heap allocation on the hot path.
- Pre-trade risk checks: Orders go through the Blitz execution engine, where 10 pre-trade risk checks (including price caps, maximum cumulative notional, order rate limits and margin utilization thresholds) run on every order before it is sent.
- Socket dispatch: Packets are sent from dedicated threads using non-blocking sockets, to keep scheduling jitter low.
Summary of the Main Checks
For reference, this table lists the gates with a specific quantitative test and what each one requires.
Table 1: Summary of Selected Gates
| Gate | What We Check |
|---|---|
| Gate 01: Microstructure | Discrete ticks; pessimistic FIFO queue; SPAN margin |
| Gate 02: Held-Out Data | Multi-decade blind historical air-gap partition |
| Gate 03: Multiple Testing | Deflated Sharpe Ratio (DSR $\ge 0.95$) penalized for $N$ |
| Gate 04: Placebo Testing | 1,000 Fourier phase-scrambled noise surrogates |
| Gate 07: Market Impact | Square-root law ($\sigma \sqrt{V/ADV}$) + 2.5x fee stress |
| Gate 08: Cross-Validation | Combinatorial Purged CV (CPCV) + 10-day time embargo |
| Gate 10: Portfolio Sizing | Calmar-weighted dynamic sizing ($\text{CAGR} / |\text{MaxDD}|$) |
| Gate 12: Execution Engine | Deterministic C++, zero heap allocation, inline pre-trade risk |
Conclusion
None of these checks is original to us, and passing all twelve does not guarantee that a strategy will make money. What the gates do is give every candidate the same set of chances to fail before any capital is at risk. I would much prefer to lose a strategy at that stage than to find out in a live account that it was built on a backtest artifact.