Products

Published work

Learn and help

Account

What is Backtest Auditor?

A red-team "lint" for trading backtests. You run it on your strategy code, return series or trade log and get a report on the errors that most often make a backtest look better than it is. Version 0.7 is an MCP server and Python library that you run locally. It's free on PyPI: pip install backtest-auditor, or uvx backtest-auditor to start the MCP server. The free web check at /backtest-audit/check is off: our latest sealed test of the Backtest Auditor didn't meet our pass rule, and the web check stays off until a version meets the rule on a later sealed test set.

Details

  • It looks for seven common problems: lookahead bias, survivorship bias, ticker reuse, unrealistic costs, overfitting, sub-period instability and concentration. It can miss them. See What does it check?
  • Your code is never executed: the Auditor reads it with static analysis only.
  • 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.
  • You bring your own data. See Do you provide market data?

Backtest Auditor reviews a hypothetical backtest that you supply for common statistical and coding errors. It doesn't recommend trading any strategy or security, and a backtest, audited or not, is hypothetical. See If my backtest passes, will it make money?

Last verified 2026-10-18.

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