ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsTopic · Rob CarverMaterial4 min readDisconfirmAI Editorial

Rob Carver's True Backtesting: Symmetric and Write-Only Protocols Against In-Sample Fitting

Systematic trader Rob Carver argues that even careful backtesting with robust out-of-sample fitting still suffers from tacit and implicit overfitting. He proposes two procedural fixes: symmetric backtesting, which tests both the positive and negative versions of every rule variation, and write-only backtesting, which never removes an idea once added. Together with robust out-of-sample fitting these constitute what he calls True Backtesting, a protocol that eliminates implicit and explicit fitting while substantially reducing tacit fitting.

2026-11-28 01:04 GMT+8

A systematic trader who avoids look-ahead bias, uses rolling out-of-sample fitting, applies robust shrinkage, and checks statistical significance has done better than most. But Rob Carver argues this careful process still leaks forward information in two ways that are harder to see.

The first is tacit fitting. The trader chose an EWMAC with spans N and 4N because books, academic papers, or a broker friend told them trend following works on the S&P 500 with that ratio. That knowledge did not exist in 1982 when the backtest starts. The same applies if the idea came from an LLM trained on data up until quite recently. The trader is encoding known answers into the design of the test itself.

The second is implicit fitting. After running the backtest, the trader sees that adding carry makes performance worse, so they kill the carry idea and keep only trend. That kill decision was made using 44 years of results that would not have been available at the start. Even with perfect out-of-sample rolling windows, the act of selecting which ideas survive is itself in-sample fitting.

Carver's solution has two components. First, symmetric backtesting: for every rule variation considered, test both its positive and negative direction. If EWMAC(4,16) loses money before costs over the rolling window, reverse its forecast sign so it becomes profitable, then deduct costs. If the reversed version still loses money after costs, it gets zero weight. If it earns a positive weight after reversal, that weight is applied as negative. This removes the arbitrary restriction that a trend-following rule must always be used for trend following. The trader no longer needs to know in advance whether the market trends or mean-reverts at a given frequency; the backtest discovers this honestly.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Second, write-only backtesting: once an idea enters the backtest, it stays forever. There is no killing. A bad idea gets a low allocation through robust fitting, or if truly bad, a zero allocation at the end—but it had a positive allocation earlier, which means the reported performance is honest. A really bad idea, when reversed by symmetry, becomes a great one (assuming it was not bad purely because of trading costs). The trader does not need to decide in advance which ideas are good; the portfolio optimiser handles it.

Carver illustrates this with a concrete example. The traditional approach uses six EWMAC pairs (N, 4N for N from 2 to 64), fits them with a 20-year rolling MVO using shrinkage parameters, then adds carry, sees performance worsen, and kills carry. The true backtesting approach uses 28 EWMAC pairs (all combinations of X and Y from {2, 4, 8, 16, 32, 64, 128, 256} with Y greater than X), applies symmetric reversal, adds carry, and keeps it regardless of whether performance improves. The result: the true backtest shows a longer initial learning period where the strategy loses money while discovering which variations work, but after 1995 the performance is more consistent because the symmetric approach correctly allocates to mean-reversion at faster frequencies.

The write-only principle also eliminates the need for multiple testing corrections. In the traditional framework, running many tests and keeping the survivors requires statistical adjustment. In the true framework, there is one backtest with vintages: earlier vintages have fewer rules, later ones have more. The trader is not selecting among independent tests; they are growing a single portfolio. Carver notes this is distinct from Lopez de Prado's advocacy of recording all backtests for correction purposes, and from Aronson's symmetric testing which still operated within a kill/accept framework.

What the method does not solve: the choice of rule family itself (EWMAC rather than some other predictor) still reflects tacit knowledge. The bounds and granularity of the parameter grid (powers of two from 2 to 256) still require judgment, though Carver argues these can be set using theory, fake data, or a short burn-in period rather than full-sample performance. The optimisation parameters (20-year window, shrinkage levels) also carry some forward knowledge, though he notes that between vaguely sensible levels of shrinkage there is little difference.

Carver plans to implement these ideas in a Python library called Autofitter, with full details to appear in his next book. He describes this as potentially the most important blog post he has written, representing a problem he has thought about for twenty years.

Sources

  • qoppac.blogspot.com↗
Topic

Rob Carver

Systematic trader Rob Carver has introduced a new backtesting protocol called "True Backtesting" to address persistent o…

4 steps1 piecesUpdated 2026-11-28 07:03

How it got here

  1. 2015-12-012015-12: Rob Carver releases the initial version of pysystemtrade, an open-source backtesting and trading engine.qoppac.blogspot.com ↗
  2. 2023-10-212023-10-21: In a Top Traders Unplugged podcast, Carver discusses techniques to prevent overfitting, including bootstrapping and robust fitting methods.toptradersunplugged.com ↗
  3. 2026-01-012026-01: Carver moves pysystemtrade to a new GitHub organization 'pst-group', co-owned with Andy Geach, to ensure project continuity.github.com ↗

What is still unsettled

  • How will the 'write-only' constraint impact computational resources and execution speed as the number of tested strategies grows indefinitely?
  • Will the private 'Autofitter' library gain adoption among institutional traders who currently rely on established open-source frameworks?
  • Can the symmetric testing protocol effectively mitigate bias when market regimes shift dramatically, potentially making previously 'negative' rules profitable?
Read the full topic →
Continue researching →