Execution realism: what latency and stop slippage do to a backtest
How a backtest fills stops matters far more than a few seconds of delay. With second-level data on 421 instruments, filling stops at the price actually trading in the second they trigger, instead of exactly at the stop level, cost stock and ETF backtests a median −2.27 bps per trade. Delaying orders by 1, 5 or 30 seconds barely moved the median at all.
Key findings
- Stop slippage is the big one. Filling stops at the real second's price instead of the stop level changed the result by a median −2.27 bps per trade (95% CI −2.51 bps to −2.07 bps) across 24,751 stock and ETF backtests whose stops triggered. One backtest in ten lost more than 6.9 bps per trade.
- It separates fantasy from reality. With stops filled at their level, 257 stock and ETF backtests showed more than 100% CAGR (median 166%). With real stop fills their median CAGR was −7%, and 72% of them fell below 20%. Most are high-turnover breakout systems on volatile names. (With level fills, 1,078 backtests across all segments showed more than 100% CAGR.)
- Latency is noise, not a cost. 1 second of delay changed the average intraday trade by a median +0.01 bps (95% CI +0.00 bps to +0.01 bps), 5 seconds by +0.01 bps (95% CI +0.01 bps to +0.02 bps) and 30 seconds by +0.01 bps (95% CI +0.00 bps to +0.03 bps), over 5,605 intraday backtests.
- But noise is not zero: at 30 seconds the 10th to 90th percentile range was −0.51 bps to +0.51 bps per trade, and 43% of backtests got worse. A single strategy can win or lose from delay; the average does not.
Why stops cost more than delay
A resting stop becomes a market order when the price touches it. In a fast move, the next trades are already past the level, so the fill is worse; the faster the market, the bigger the miss. Breakout systems put their stops exactly where fast moves happen: Donchian breakouts lost a median −4.22 bps per trade, RSI(2) mean reversion only −0.15 bps.
Delay works differently. A market order sent a few seconds late can fill better or worse; momentum entries tend to get worse and mean-reversion entries better, and across strategies the effects cancel out.
Results by segment (median change per trade, bps)
| Segment | 1 s delay | 5 s delay | 30 s delay | Real stop fills | Real stop fills, 10th percentile |
|---|---|---|---|---|---|
| US stocks & ETFs | +0.01 | +0.01 | +0.01 | −2.27 | −6.9 |
| Crypto | +0.00 | +0.00 | +0.00 | −9.38 | −25.1 |
| FX & spot metals | +0.00 | +0.00 | +0.00 | −0.28 | −2.1 |
Crypto slippage is an upper range: many crypto instruments are thin altcoin pairs where the price of a second can jump. We never use crypto for a headline.
Method
Question. Starting from a backtest that fills stops exactly at their level and market orders immediately, what changes when stops fill at the price of the second they trigger in, and when market orders arrive 1, 5 or 30 seconds late?
Backtests. The same strategies, data and costs (1 bp per side) as the bar-resolution study, all at second-level resolution.
- Latency: market orders generated by a signal reach the market N seconds later and fill at that second's price. Resting stops and limits are unaffected, because they wait at the broker or exchange. The latency figures use the intraday families that trade with market orders: EMA cross and RSI(14) on 5-minute bars, VWAP fade and EMA cross on 1-minute bars.
- Stop slippage: stops fill at the price of the second in which they trigger. That is how Matana Labs fills stops; the harness was matched trade by trade with the production engine on a reference tape.
Measure. The per-trade effect is the change in total log return divided by the number of trades, in basis points. Backtests need at least 20 trades. Confidence intervals are 95% CI from a cluster bootstrap over instruments (1,000 resamples, seed 20261120).
Data coverage
| Segment | Instruments | Second-level data used | Median history (min to max) | Sessions | Notes |
|---|---|---|---|---|---|
| US stocks & ETFs | 295 | 2003-09-10 to 2026-11-19 | 20.8 years (1.8 to 23.2) | 1,249,522 | 25 sessions excluded by data checks; 301 split adjustments (69 uncertain) |
| Crypto | 93 | 2013-11-01 to 2026-11-19 | 5.5 years (2.0 to 13.0) | 198,978 | 470 sessions excluded by data checks; 146 split adjustments (120 uncertain) |
| FX & spot metals | 33 | 2009-09-24 to 2026-11-19 | 17.2 years (3.1 to 17.2) | 167,360 | 2 split adjustments (0 uncertain) |
The first and last session of every instrument are in data-coverage.csv.
Limitations
- Survivorship. The universe is the set of instruments available in Matana Labs today; delisted companies are missing, and with them some of the most violent moves, so real stop slippage may be larger.
- Time period. Stocks and ETFs cover 2003 to 2026 at most, crypto and FX less. Slippage depends on the market's speed, which changes from year to year.
- Costs model. The spread is a flat 1 bp per side. In fast markets spreads widen, so real slippage on breakouts is likely larger than measured here.
- Uncertain split adjustments. Splits were detected from overnight gaps; some 3:2 or 2:3-type adjustments may be genuine price gaps (see the coverage table). They apply to every fill model alike.
- The second's price. A stop fills at the last price of its trigger second, not at the first trade after the trigger; real fills can be somewhat better or worse.
- Constant latency. Real latency varies and tends to spike at volatile moments, exactly when it hurts most.
How the engine behind this study fills orders and charges costs: order execution model, costs and the engine validation.
Reproduce it in Matana Labs
Matana Labs fills every stop at the price of the second in which it triggers, so stop slippage is already in every backtest (how second-by-second fills work). To test delay on your own strategy, run the latency test in Analysis Lab: it reruns the strategy with orders filled seconds later, with fixed and random delays. The aggregated results of this study are below, under CC BY 4.0.
Reproduce this test in Matana LabsOpens Analysis Lab in the app. Sign in or create an account on the free Explore plan first.
Open Analysis LabDownload the summary data
Aggregated statistics only, no price series and no trade lists. Licence: CC BY 4.0; please credit Matana Labs.
- latency_by_family.csv: Aggregated summary statistics: segment × family × latency
- stop_slippage_by_family.csv: Aggregated summary statistics: segment × family
- summary.csv: Aggregated summary statistics: segment × execution model
- data-coverage.csv: the first and last session used, sessions and split adjustments per instrument (shared by all studies)
Columns of latency_by_family.csv (Latency and stop slippage)
median_d_trade_bps: as above
Columns of stop_slippage_by_family.csv (Latency and stop slippage)
median_d_trade_bps: as above, stop slippageshare_level_cagr_over_100pct: share of backtests with CAGR > 100% when stops fill at the level
Columns of summary.csv (Latency and stop slippage)
model: 1s_latN = market orders reach the market N seconds after the signal; 1s_slip = stops fill at the second's price instead of the stop levelpairs: (instrument, strategy) backtests with >= 20 trades (latency: intraday families with market orders; slippage: backtests whose stops trigger)median_d_trade_bps: median change in log return per trade, bps, vs second-level fills without delay and with stops at the level (+95% CI for US stocks & ETFs)p10_d_trade_bps / p90_d_trade_bps: 10th / 90th percentilemedian_d_annlog: median change in annualized log growth, fraction per yearshare_worse: share of backtests that get worse
Cite as: Matana Labs (2026). Execution realism: what latency and stop slippage do to a backtest. matanalabs.com/research/execution-latency-and-stop-slippage/
Questions
Does a second of latency matter for me?
For most retail intraday strategies much less than how stops are filled. It matters for very short holding periods.
Why can latency sometimes help?
Mean-reversion entries can improve by waiting a moment, momentum entries get worse. The median mixes both; the per-family numbers are in the data file.
How does Matana Labs handle this?
The engine fills stops at the price of the second in which they trigger, and the latency check reruns a strategy with delayed orders.