TradeLabs AILearn

From Backtest to Live: Paper, Shadow and Canary

Why live results almost always trail backtests, how to measure the gap, and a staged plan for taking a strategy from backtest to paper trading to real money.

Advanced3 min readUpdated 3 Oct 2026
Markdown
Lesson 7 of 11

Almost every strategy performs worse live than in its backtest. Some of the gap is unavoidable: the backtest was fitted to the past and the future is different. Much of it is avoidable: optimistic cost assumptions, fills that would never happen, data the live system cannot see and bugs in the code. The goal of moving from backtest to live is not to make the gap disappear but to understand it, keep it small and catch problems while positions are still small. This lesson focuses on algorithms; Moving From Paper to Live Trading covers the same move for discretionary traders.

Where the gap comes from#

SourceExampleLesson
OverfittingParameters tuned to past noiseOverfitting and Curve Fitting
CostsSpread and slippage larger than assumedCosts and Slippage in Backtests
Fill assumptionsLimit orders filled whenever price touchedFill Models, Partial Fills and Order Queues
Look ahead biasUsing data before it was availableLook-Ahead Bias
Data differencesLive feed differs from historical vendor dataCleaning Market Data
LatencySignals acted on later than in the backtestLatency in Trading
Regime changeMarket behaviour shiftsStructural Breaks and Regime Changes
CapacityLarger size moves the priceAlpha Capacity and Crowding

A common rule of thumb among systematic traders is to expect live Sharpe ratios well below backtested ones, often around half, though this varies widely.

A staged rollout#

StageDuration (typical)Pass criteria
Out of sample and walk forward testsBefore any live dataPerformance holds on unseen data
Paper trading on live dataWeeks to monthsSignals match the backtest engine replayed on the same days
Small live size1 to 3 months or a set number of tradesFills and costs match assumptions
Gradual scale upOngoingResults stay within expected ranges

Paper trading tests the code and data path, but not real fills and market impact. Small live trading tests those. See Paper Trading.

Measuring the gap: shadow comparison#

Each day, run the backtest engine over the same period the live system traded and compare:

  • Signals: did both generate the same trades?
  • Entry and exit prices: how much slippage did live trading suffer?
  • Costs: were commissions and spreads as assumed?
  • P&L: how much of the difference is explained by each factor?

When to stop or scale down#

Decide in advance what results would mean the strategy is broken rather than unlucky:

  • Drawdown beyond the backtest's worst by a set margin. See Maximum Drawdown.
  • Signal mismatch between live and backtest.
  • Costs consistently above assumptions.
  • Performance below a statistical threshold after enough trades. See Statistical Significance in Trading.

Writing these rules down before going live prevents rationalising losses later.

Common mistakes#

  1. Going straight to full size after a strong backtest.
  2. Paper trading too briefly to see a range of conditions.
  3. Not comparing live with backtest trade by trade.
  4. Changing the strategy mid test, which resets what you learned.
  5. Ignoring small discrepancies that later turn out to be bugs.

Frequently asked questions#

Why is live trading worse than backtesting?#

Overfitting, higher real costs, unrealistic fill assumptions, look ahead bias, data differences, latency and changing market conditions all reduce live results.

How long should I paper trade an algorithm?#

Long enough to see a meaningful number of trades and a range of market conditions; for many strategies that means several weeks to a few months.

How do I know if my strategy has stopped working?#

Set rules before going live, such as a drawdown limit beyond the backtest's worst, and compare live trades against backtest replays regularly.

Next, learn what to watch once an algorithm is running in Monitoring Positions, P&L and Risk.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonMonitoring Positions, P&L and RiskRunning algorithms need constant monitoring. Learn the key health, trading and risk metrics to track, how to design useful alerts and how to avoid alert fatigue.

Mentioned in