Paper trading a trading bot lets you test rules, data handling, risk controls, and operational reliability before real capital is exposed. This guide explains how to set up a realistic simulation, maintain a useful trade log, review results on a fixed schedule, and decide whether a bot is ready for another stage of testing.
Overview
A paper trading bot places simulated orders rather than using real money. The objective is not simply to produce an attractive return on a screen. A useful test should show how the algorithm behaves when prices move, signals arrive late, orders are only partly filled, trading costs apply, and the market does not match the assumptions in the original strategy.
Begin by writing the strategy in rules that a computer can evaluate consistently. Define the instruments, trading hours, timeframe, entry conditions, exit conditions, position size, stop rules, maximum exposure, and conditions under which the bot must stop trading. For example, “buy when the trend is strong” is difficult to test consistently, while “buy when a specified moving-average condition is met and volume passes a defined threshold” is more measurable. The exact indicators are less important than making the rules explicit and repeatable.
Paper trading is a form of algorithmic trading practice, not proof that a strategy will make money live. A simulated environment may overlook order queues, exchange routing, borrow availability, rejected orders, outages, spread changes, or the emotional pressure of financial loss. Treat the exercise as a controlled diagnostic process.
Before connecting a paper trading bot to a platform, confirm which market data it receives. Data may be real-time, delayed, sampled at intervals, or simulated. Check whether the feed includes trades, quotes, corporate actions, extended-hours activity, and the instruments you intend to test. If the bot uses pre-market or after-hours signals, review the additional liquidity and gap risks discussed in our guide to pre-market and after-hours stock movers.
What to track
1. Signal quality and rule execution
Record every signal, including signals the bot rejected because of a risk limit or missing data. This helps distinguish a weak strategy from a software or configuration problem. For each event, capture the timestamp, symbol, direction, signal value, intended entry, intended exit, and reason for the decision.
Keep the strategy version in every record. If you change an indicator, filter, time window, or position-sizing rule, give that version a new identifier. Mixing results from several versions makes it difficult to know which rules produced the outcome.
2. Simulated fills and trading costs
For each order, record the intended price and the simulated fill price. Add quantity, order type, spread assumption, commission or fee assumption, and slippage. Slippage is the difference between the price expected when a signal appears and the price at which an order could plausibly be filled. A bot that looks profitable before these adjustments may be unattractive after them.
Do not assume that every market order fills at the last displayed price. A more cautious simulation can apply a configurable slippage estimate or use the next available quote. Limit orders should also be tracked as filled, partially filled, or unfilled rather than being treated as guaranteed executions.
3. Risk and performance
Track more than total return. Useful fields include win rate, average gain, average loss, largest losing trade, maximum drawdown, exposure, turnover, number of trades, time in the market, and results by instrument or market session. A strategy with a high win rate can still be vulnerable if occasional losses are much larger than typical gains.
Review bot trading performance alongside a simple benchmark or a clearly defined alternative. The comparison does not need to be complex. It should answer whether the extra rules and trading activity produced a result that justified their additional costs and operational risks.
Paper trading log template
A practical log can use these columns:
- Date and timestamp
- Symbol and market session
- Strategy and code version
- Signal and reason for entry
- Intended price, simulated fill price, and quantity
- Exit reason and exit fill
- Fees, spread, and slippage assumptions
- Gross and net profit or loss
- Portfolio exposure and risk limit at entry
- Data, software, or execution warnings
- Notes about news, earnings, dividends, splits, or unusual volatility
For a broader review of return and risk measurements, see our guide to trading bot performance metrics. The log should remain readable enough for a person to audit, not just a database that produces a single headline number.
Cadence and checkpoints
Initial setup checkpoint
Before allowing the bot to run unattended, test each component with small, controlled scenarios. Confirm that a signal creates only one order, that duplicate signals do not duplicate positions, that an exit is triggered correctly, and that the bot responds safely when data is missing. Test the maximum position, maximum daily loss, symbol limits, and emergency stop separately.
Use a trading bot simulator or broker paper account that clearly identifies simulated orders. Keep credentials, permissions, and API access separate from any live account. If a platform provides delayed data or simplified fills, document that limitation in the test plan rather than treating the results as live-equivalent.
Daily or session review
At the end of each trading session, reconcile the bot's intended orders with its simulated orders. Look for missed signals, unexpected fills, duplicate positions, stale data, calculation errors, and orders that breached a stated rule. Check whether the market had an earnings announcement, corporate action, halt, or unusual news event that could have affected the test.
Daily review is especially useful during the first phase because technical faults can otherwise accumulate. Save logs and error messages before restarting the system. A clean restart can hide the cause of a failure.
Weekly review
Once a week, review the complete trade set rather than selecting only successful examples. Group trades by instrument, direction, entry type, market session, and strategy version. Compare expected and simulated execution. Recalculate performance after the same fee and slippage assumptions used in the log.
Also review the bot's behavior during different market conditions. A strategy may behave differently during a quiet period, a sharp trend, a gap, or a range-bound session. Do not change the rules after every losing trade. Record a proposed change, explain the reason, and start a new test version so the original results remain auditable.
Monthly or quarterly checkpoint
At a longer interval, assess whether the sample remains relevant and whether the strategy's assumptions have changed. Review data subscriptions, broker or platform features, fee schedules, trading hours, supported order types, and any changes to the instruments being tested. These details can alter simulated results even when the code is unchanged.
Revisit the strategy's backtest separately from its paper results. Our backtesting guide covers data quality, costs, walk-forward testing, and common failure checks. A paper test should extend the evidence; it should not be used to excuse a poorly designed backtest.
How to interpret changes
A sudden improvement may reflect a genuine market condition, a data change, an execution assumption, or a coding error. Start with diagnosis rather than celebration. Compare the timestamp of the change with software releases, feed changes, symbol-list changes, and strategy edits. Examine individual orders around the turning point.
A decline in performance can have several explanations. The strategy may have encountered a different market regime, trading costs may have increased, signals may be arriving later, or the simulated fill model may have become more realistic. Review whether the bot is still receiving the same fields and timestamps. If a news-driven move caused the change, compare it with broader market and sentiment information; our stock sentiment guide provides a framework for putting news, volume, options, and short interest in context.
Separate three types of results:
- Strategy results: the outcome produced by the entry, exit, and sizing rules.
- Execution results: the outcome after spread, slippage, partial fills, delays, and rejected orders.
- Operational results: whether the system ran reliably, preserved logs, respected limits, and recovered safely from interruptions.
A bot should not be considered ready merely because its strategy results are positive. Weak execution or operational reliability can undermine a promising signal. Similarly, a temporary losing period is not automatically evidence that the rules have failed. Look for persistent changes in the underlying assumptions and compare results across defined periods.
Live-readiness checklist
- The entry and exit rules are written clearly and version controlled.
- The data source, timing, symbols, and market sessions are documented.
- Fees, spread, slippage, partial fills, and rejected orders are included in the simulation.
- Position, exposure, loss, and order-frequency limits have been tested.
- Duplicate-order and stale-data protections have been checked.
- The bot produces complete, timestamped logs that can be audited.
- Results remain understandable after separating strategy, execution, and operational effects.
- A manual emergency stop and recovery procedure have been tested.
- Any future live deployment would begin with limited exposure and continued monitoring.
Passing this checklist does not remove market risk. It indicates only that the system has earned another controlled test, not that a particular share price, stock news event, or market trend can be predicted reliably.
When to revisit
Review a paper trading bot at least weekly while it is being developed, then conduct a broader monthly or quarterly review if the strategy is stable. Revisit it immediately after a code change, data-provider change, broker or platform change, new instrument, altered fee assumption, corporate action, or unusual execution event.
Keep a change diary beside the paper trading log. Record what changed, why it changed, which test period is affected, and whether the previous version should remain available for comparison. This simple habit prevents hindsight from being mixed into historical results.
For a practical next step, run the bot in simulation for a defined review period, export every order and warning, and complete the log before judging performance. At the end of the period, calculate net results under conservative execution assumptions, inspect the worst trades, and decide whether to continue paper trading, revise the strategy, or stop testing. If the bot cannot behave consistently in a transparent simulation, it is not ready for real money.