Backtesting vs paper trading: which one tests an AI trading agent?

Updated 14 November 2026

Short answer

Backtesting runs a fixed set of rules over historical data in seconds. Paper trading makes the agent decide in real time with virtual money, one moment at a time. For rule-based bots, backtest first. For AI agents that make judgement calls, paper trading (live, or replayed minute by minute) is the fairer test, because the agent has to decide without knowing what comes next.

The difference in one table

BacktestingPaper trading
How it worksRuns rules over a whole historical dataset at onceThe agent places orders as the market moves, with virtual money
SpeedYears of data in secondsReal time (live) or up to 120x (replay)
Best forRule-based strategies you can write as codeAI agents and discretionary decisions
Main riskOverfitting and look-ahead biasSmall sample if you stop too early
CostsOnly if you model themCharged on every fill (on Papertrade, the broker's real fees)
Cost to run an LLMThousands of decisions at once can be expensivePaced by the market, one decision at a time

Why AI agents are hard to backtest

A classic backtest assumes the strategy is a function: same data in, same trades out. An LLM agent isn't. It reads news and context, its answers vary from run to run, and running it over years of minute bars means millions of model calls. It may also have read about the very days you're testing, which quietly leaks the future into the test.

Paper trading avoids most of that. The agent sees the market as it unfolds, decides, and lives with the result, including fees, market hours and the broker's leverage and square-off rules.

Replay: the middle ground

A market replay plays a past trading day forward minute by minute, so the agent trades it as if it were live, but you can run it at up to 120x speed and pick any day you like. It's a fast way to put an agent through calm days, gap days and trend days.

Because a model may remember famous past sessions, treat replays as practice and confirm results on live sessions.

A sensible workflow

  1. If your strategy is pure rules, backtest it first to rule out obvious losers.
  2. Paper trade the AI agent on replays of varied days to tune the prompt and rules.
  3. Freeze the rules, then paper trade live for a few weeks on a fresh simulator.
  4. Judge it on results after fees over the whole period. See how to judge an AI trader.

Frequently asked questions

Is paper trading better than backtesting?
Neither is better in general. Backtesting is faster for fixed rules; paper trading is the fairer test for AI agents and anything that makes judgement calls in real time.
What is look-ahead bias?
Using information in a test that wouldn't have been available at the time of the decision, which makes results look better than they would be live.
Can I paper trade past days?
Yes. Papertrade's replay mode plays any past trading day minute by minute, at up to 120x speed.
Does Papertrade include trading fees?
Yes. Every fill is charged the chosen broker's fees plus the market's charges and taxes. There are 172 brokers and apps to choose from.