Known limits: what the backtest does not model, and where live trading differs
What the backtest does not model or simplifies, and where live trading differs, each item linked to its exact rule.
A backtest replays recorded prices through a simulated account. This page lists, in one place, what that simulation leaves out or simplifies, and where your live account will behave differently. Each item links to the page with the exact rule. Everything here is today's behaviour.
1. Execution
- Fills are complete and immediate. There are no requotes, no partial fills, no latency, no order book and no liquidity limit: an order fills in full at the price of the moment (market orders).
- A touch fills. A stop, a target or a pending order is reached when the price equals its level (stops and targets); MetaTrader once waited for a strict breach (comparison).
- Tick-mode fills are at the tick's price, so a stop the price jumps over pays the gap and a target gets the better price (gaps).
- Slippage is a fixed number of points you set for the run or per instrument; it does not vary with volume, volatility or time (slippage).
- Computed prices are rounded to the instrument's digits, an exact half away from zero, as MetaTrader does, and the recorded prices are read on the same grid (two precisions).
- The spread is each recorded tick's in tick mode and the minute's average in bar mode, unless a virtual symbol replaces it (spread).
- Costs are zero unless you attach a virtual symbol: no commission and no swap, and the spread is the recorded one (costs).
- Costs do not change over time: a virtual symbol's rates apply to every date of the run, so a preset charges its capture date's swap rates on years when the broker charged others. A preset's swap is a percent of the price, so its amount follows the price, not the interest rates of the time (presets).
2. Bar mode
- One evaluation per finished one-minute bar; fills at the next bar's open; stops, targets and pending orders tested against the bar's range, filled at their level (a stop the bar opens beyond fills at the bar's open), with the stop winning when a bar covers both; an every-tick rule runs once a minute (what bar mode assumes).
- A strategy that trades more than one symbol is tested on each symbol's own one-minute bars (several traded symbols).
3. The account: margin and stop-out
- Margin is lots × contract size × price × conversion rate ÷ leverage, with one leverage per instrument and only through a virtual symbol; there are no margin rates and no size tiers (margin). Without a broker preset every instrument, an index CFD included, is margined at the run's leverage; a real tester refused 9 of p09's trades for margin that the backtest took (what still differs).
- An order that does not fit the free margin is refused, never reduced — a market order when sent, a pending order when it triggers.
- Stop-out happens only when equity falls below zero, and it ends the run. Your broker will usually stop you out earlier, at its own margin level (stop-out).
4. Orders a broker would refuse
- Checked as a broker would: the volume limits, free margin, pending orders on the wrong side of the market, stops and targets on the wrong side of the price (a buy's stop measured against the bid), the broker's minimum stop distance when your virtual symbol states it, and unusable numbers (every reason an order is refused).
- Not checked: the freeze level, and the minimum stop distance when the run's virtual symbol states none (a catalog instrument without a virtual symbol has none) (wrong-side stops).
- Contract specifications. Without a virtual symbol every instrument trades with the catalog's lot minimum and step and no maximum (only margin bounds a size), not any broker's full specification; attach a virtual symbol with your broker's specification to size on its real grid (contract sizes and volume limits).
5. Trading hours and gaps
- No trading sessions, holidays or early closes. The backtest trades whenever a tick exists. Where your broker's book is closed — an index CFD's daily break, for example — the backtest can fill an order the broker could not (asset classes).
- No gap model. Weekends and outages are simply missing ticks (gaps). A whole-session outage in the data is not detected: on 2024-07-19 (US100) both the engine and MetaTrader traded a stale range.
6. Conventions that can catch you out
Each is today's behaviour, and none is reported as an error.
- Highest/Lowest at shift 1 in a candle-close rule includes the bar that just closed, as MetaTrader's
iHighest/iLoweststart index does, so "Close[0] > Highest(20, shift 1)" can never be true; read the range at shift 2 to compare with the 20 bars before it (Price Range). - The trailing-stop and break-even fields are price distances, not prices: a price entered where a distance is expected never arms the mechanism, with no error (trailing).
- A second instrument's one-minute bar is read one bar late at a candle-close decision — a delay, never a look-ahead (read conventions).
7. Where live trading will differ from the backtest
Live, your strategy trades on your broker's prices, with your broker's costs, contract and order rules, and the broker refuses orders the backtest takes. Every difference is in the table on Live execution → live versus a backtest; under heavy load the live engine evaluates the newest price and may skip older ones (heavy load).
8. Your data
- Stored market data can be corrected in place, and a run does not record which state of the data it read, so a rerun after a correction can differ (corrections).
- Known oddities in the provider's history (copper, diesel, CADJPY) are not corrected; backtests over those windows run on that data (prices are used as published).
- A backtest keeps the bar volume it was run with. Since November 2026 a bar's volume is its tick count; a run made before read the sum of the provider's bid-side volume figure and is not recomputed. Re-run it to get the tick count (volume).
Not yet documented
- How live reads a second instrument's one-minute bar at a candle close, and the forming higher-timeframe bar at a one-minute decision. The backtest behaviour is pinned (section 6); live has not been measured.
- Whether p09's nine extra trades disappear when the run carries the broker's per-instrument leverage (not re-measured with a preset).
- Which state of the market data a past run read: not recorded.
Questions?support@algotradinghub.io