We Had AI Agents Build 20 Trading Strategies. None Passed Our Backtest Audit.

·

Robot assistants hand backtest charts to an analyst, who rejects most of them under a magnifying glass

Between October 6 and November 19, 2026, AI coding agents built 20 trading strategies for us, from idea to backtest code. Twelve of them showed a yearly return above 15% in their own backtest, and the best showed 55.8%. Then each one went through the same automated audit before we would publish a number. None of the 20 passed.

Short version: an AI agent can write a working backtest in minutes, and it will happily keep revising until the curve looks good. That revising is the problem. The most common failure was a result that looked like skill but was explained by luck from many tries, one lucky coin, or leverage, rather than a coding bug. If you are building a trading bot with Claude, ChatGPT or any other model, the checks below are worth keeping.

How the strategies were made

Each strategy started from a documented market effect, such as momentum, funding rates or open-interest surges. Coding agents (Claude Code, OpenAI Codex and Google Antigravity, taking turns) wrote the backtest, ran it, read the losing periods and revised the rules. A strategy could go through up to 13 rounds of this before it was frozen. Each run was logged.

By mid-November, the ledger used to judge one crypto strategy held 409 backtest runs. When you try 409 variations, the best one will look impressive even if none of them has an edge.

What the audit checks

The audit has two layers. The first asks whether the bookkeeping is honest. The second asks whether an honest result could still be luck.

  • Look-ahead: change prices after a cut-off date and confirm the earlier equity curve does not move. If it moves, the strategy is reading the future.
  • Costs: double the trading cost and rerun. The result has to change, or costs were never charged.
  • Hindsight universe: the list of assets has to come from a rule you could have applied on the start date, not from knowing which funds won.
  • Holdout: rules are developed on 2016 to 2022. 2023 onward is judged once per version and the result is kept, so a strategy cannot be retried until it passes.
  • Deflated Sharpe: the Sharpe ratio is compared with the best Sharpe you would expect from that many tries (Bailey and López de Prado, 2014). Below 0.95, the result may be a lucky draw.
  • Drop one asset: remove the biggest contributor. If the return collapses, the strategy is a bet on one coin or stock.
  • Parameter neighbors and start date: move each setting by 20% and shift the start date. A real edge survives small nudges.
  • 1x proxy: swap leveraged ETFs for their unleveraged versions. If the edge disappears, the return was leverage, not timing.

Why the 20 failed

Most strategies failed more than one check, so these counts add up to more than 20:

Check failedCount
Deflated Sharpe below 0.95 (may be luck)14
Holdout from 2023 worse than the benchmark7
Fell apart when the start date moved5
Depended on one asset4
Asset list picked with hindsight4
Fell apart when a setting moved 20%3
Edge gone at 1x leverage3
Costs not applied / look-ahead1 each

Four failures, up close

55.8% a year, and all of it was Bitcoin

An open-interest surge strategy on crypto perpetual futures returned 55.8% a year in its backtest with a −37.4% maximum drawdown. Remove BTCUSDT from its list and the yearly return drops to 0%. Its Sharpe of 1.29 also sat well below the 2.17 you would expect as the best of 409 random tries, which gives a deflated Sharpe of 0.007.

A tall tower of blocks resting on a single coin

A trend filter that was really leverage

A strategy that held leveraged S&P 500 and Nasdaq ETFs (UPRO, TQQQ) only above the 200-day average, with a filter for choppy markets, showed 20.4% a year. Swapping in the 1x funds (SPY, QQQ) gave 6.25% a year with a Sharpe of 0.63, while simply holding the same 1x basket gave 18.4% with a Sharpe of 0.95. The timing rule made things worse, and the return came from the 3x leverage.

The fund list was chosen by the results

Four strategies used sector 3x ETFs such as SOXL, TECL, FNGU and BULZ. These are funds we now know did very well. Without a rule that would have picked them on the start date, a backtest that holds them is partly a backtest of hindsight. All four were stopped until the asset list is set by a rule.

Doubling the costs changed nothing

One sector-rotation strategy gave the exact same result when we doubled its trading costs. The costs were never being charged. The same strategy also loaded prices outside the audited loader, so look-ahead could not be checked. Both are the kind of bug an agent can write and never notice, because the output still looks like a normal backtest.

If you are building an AI trading bot

AI agents are still useful for trading research: they wrote and revised hundreds of backtests faster than a person could. But the agent is the one doing the trying, so it cannot also be the one judging. Before you trust a backtest an AI wrote, run these yourself:

  1. Count your tries. Every version you ran counts, including the ones you threw away. Use the count when you judge the best result.
  2. Keep a holdout you only look at once. Pick a final period before you start and do not tune on it.
  3. Double the costs. If nothing changes, costs are not in the code.
  4. Remove the best asset. If the return disappears, you have a position, not a strategy.
  5. Compare with doing nothing clever. Hold the same assets, at the same leverage, over the same dates.

Our backtest checklist lists these with the reasons. The backtest metrics calculator works out CAGR, drawdown and Sharpe from your own numbers. And how to read a backtest explains deflated Sharpe in more detail.

What simple strategies did instead

For comparison, we ran well-known strategies on SPY from 1993 under the same rules: decide on the close, trade at the next close, 0.1% cost per side. Golden cross returned 10.12% a year with a −33.72% maximum drawdown, against 10.91% and −55.19% for holding SPY. Buying at RSI 30 returned 6.13%. The full set, with out-of-sample periods and double-cost results, is on the famous strategies experiments page. Those numbers are less exciting than 55.8%, but they survive the checks that the exciting ones did not.

Related on avalonquant.com

Educational material. Test with small amounts first. We are not liable for losses or software errors.

📊 Empirical Strategy Audit — Mathematical backtests, friction analysis, and regime risk decompositions.

▶ Subscribe to Avalon Quant

⚠️ Not financial advice. This guide is for educational purposes only; trading can lose money, and past results do not guarantee future ones.

More to read