Products

Published work

Learn and help

Account

What does Backtest Auditor check?

It looks for seven common ways a backtest misleads you: lookahead bias, survivorship bias, ticker reuse, unrealistic costs, overfitting and multiple testing, sub-period instability, and concentration.

Details

  1. Lookahead bias: using data that wasn't available when the trade would have been made, such as a day's closing price to trade at that day's open. See lookahead bias.
  2. Survivorship bias: testing only on companies that still exist today leaves out the ones that failed or were delisted.
  3. Ticker reuse: symbols get recycled and companies get renamed; joining on the symbol alone can splice two companies into one history. The trade-log check flags well-known symbols traded before their current company used them; it can't catch every reused ticker. See delisted stocks and tickers.
  4. Unrealistic costs: commissions, spreads and slippage add up. A high-turnover strategy can look fine before costs and lose money after them.
  5. Overfitting and multiple testing: try enough variations and one will look good by chance. You say how many variants you tried, and the Deflated Sharpe Ratio raises the bar to match. See number of variants.
  6. Sub-period instability: the test period is split into thirds and years and the pieces compared.
  7. Concentration: if a handful of days or tickers produce most of the gains, the result is fragile.

Code findings are marked high, medium or possible, each with its line and a one-line reason. An audit of a return series, a trade log or a whole backtest ends with a verdict (Major red flags, Some red flags, or No red flags found) and always the same caveat: no red flags doesn't mean a strategy will make money; it means these checks didn't find the common errors.

Static checks miss many leaks. A clean code check is weak evidence, not a clean bill of health. In our latest full-size sealed test (our own test, one set, 2026-10-18), the released version flagged 34 of 60 planted leaks and raised a high or medium red flag on 1 of 105 plain correct files and 4 of 55 correct files written to look like leaks (5 of 160 overall). On leaks that open-source developers had found and fixed in their own code, it flagged 2 of 28 in a first trial, then 5 of 22 and 0 of 10 in two small pilots; with so few examples these counts are very uncertain. The full-size test and both pilots did not meet our pass rule. Results, misses included, are on the Backtest Auditor page.

Last verified 2026-10-17.

Still stuck? Email support@nothingbutalpha.app and a person will reply.