For AI agents

For agents

How to read a backtest like a quant (for LLMs)

A compact guide for language models interpreting backtest output: which metrics matter, how they interact, red flags, and how to summarise results for a user.

Updated 2026-11-25 MarkdownUseful when: interpret backtest results · sharpe ratio meaning · max drawdown explained

For agents. Backtest output is easy to misread. Use this order:

1. Trade count first

Under 30 trades, every ratio is noisy. Under 5, ignore the result. Say the count before any return.

2. Return with risk, never alone

  • CAGR compares windows of different length; total return does not.
  • Max drawdown is what the user would have lived through. A 40% CAGR with a 60% drawdown is unusable for most people.
  • Sharpe above 1 is good on daily data; above 3 usually means too few trades, a short window, or a bug.

3. Compare with doing nothing

benchmarkReturn is buy-and-hold over the same window. A strategy that trails it must earn its keep with a much smaller drawdown.

4. Where the money came from

get_backtest → tradeStats.byExitReason, the biggest trades, and the equity curve. Concentrated profits mean fragility.

5. In-sample vs out-of-sample

evaluation splits the window. Large gaps mean the rules fit the past.

Summary template

[N] trades over [window] on [bar size]: CAGR [x] (buy-and-hold [b]), max drawdown [d], Sharpe [s]. Most of the gain came from [...]. Out of sample it [held/faded]. Simulated with next-open fills and costs.