A good backtest is a reason to keep going, not a reason to risk money. Between the two sits paper trading: the same algorithm, running on live prices through a broker's paper or demo account, with simulated money. It catches what a backtest can't: real data arriving late or out of order, fills that differ from the model, and code paths that only run in live mode.
How to start a paper deployment
Connect a broker that has a paper or demo environment, such as Interactive Brokers, Alpaca, OANDA, Tradier, or Binance and Bybit in their demo modes, then deploy the algorithm to that account. It's the same code you backtested, running on the same LEAN engine. See our guide to connecting a broker for each one's steps.
Give the deployment the same safety limits you'll use live. Paper is where you find out whether they're set right.
What to compare with the backtest
- The trades it takes. Run a backtest over the same days and compare signals one by one. Different trades usually mean different data, or logic that depends on timing.
- Fill prices. Compare paper fills with the prices the backtest assumed. The gap is your real slippage; if it's bigger than the backtest's model, the backtest was optimistic.
- Timing. Did orders go out when expected: at the open, after the close, on the hour?
- Errors and refused orders. Check the logs for anything the backtest never hit: rejected orders, symbols the broker doesn't offer, minimum order sizes.
- Its behaviour after a restart. Does it pick up its positions correctly, or start from scratch?
How long is long enough?
It depends on how often the strategy trades. What you need is a fair number of its trades, and at least one change in market mood. A strategy that trades every day might show what it does in a few weeks; one that trades weekly needs months. A paper run with three trades proves very little either way.
What paper trading can't tell you
- Market impact. Paper fills don't move the market. A strategy trading size in thin markets will do worse live.
- Queue position. A paper limit order may fill when a real one, waiting behind others, wouldn't.
- Your own nerve. Watching real money fall is different. Decide in advance what you'll do in a drawdown, and let the drawdown stop enforce it.
Going live
When paper trading matches the backtest closely enough, deploy the same algorithm to the live account, with less money than you plan to use eventually. Watch it like you watched the paper run, and add money as the live results keep matching. The live trading agent can run it within your limits and send you a daily report.
Frequently asked questions
What is paper trading?
Running a strategy on live market prices with simulated money, usually on a broker's paper or demo account. Orders are filled as if they were real, but no money changes hands.
How long should I paper trade a strategy?
Long enough to see a fair number of its trades and a range of market conditions: for a strategy that trades daily, a few weeks; for one that trades weekly or less, a few months.
Which brokers offer paper trading?
On MarketsCoder: Interactive Brokers, Alpaca, OANDA and Tradier have paper accounts, and Binance and Bybit have demo modes. Others are live only.
