Slippage in Backtesting: Why Good Results Can Disappear
Slippage is the difference between the reference price and the modeled fill. To stress a long round trip conservatively, move the entry upward and the exit downward. A basis point is 0.01%, so five basis points means multiplying the reference price by 0.0005 for the adverse price change.
Worked example
Hypothetical numbers for checking the rule and arithmetic. These are not live prices, observed backtest results, or a recommended trade. The example is a research specification; check supported settings before applying it in a simulator.
The table fixes quantity at 0.1 BTC, a reference entry of 100,000 USDT and reference exit of 101,000. With no slippage, gross price profit is 100 USDT. At five basis points per fill, entry becomes 100,050 and exit becomes 100,949.5; profit before commission is 89.95. At twenty basis points it falls to 59.80. The model changes both fills, not just one flat deduction from the final account balance.
| Slippage per fill | Entry (USDT) | Exit (USDT) | Profit after stated cost (USDT) |
|---|---|---|---|
| 0 bps | 100,000 | 101,000 | 100.00 |
| 5 bps | 100,050 | 100,949.5 | 89.95 |
| 20 bps | 100,200 | 100,798 | 59.80 |
How to use this experiment
For a short, adverse entry is lower and adverse exit is higher. Keep the signal dates, quantity and fee assumptions fixed when comparing runs. If a different slippage setting changes position sizing, stops or which orders fill, list those effects separately; the difference is no longer only a per-trade cost adjustment.
A constant basis-point assumption is a sensitivity test. It does not recreate queue position, partial fills or market depth, and it cannot cap losses through gaps. Compare ordinary fills with volatile or illiquid periods. If bid/ask spread is already embedded in the input, avoid adding that same spread again under the name slippage.
Continue the research
Research sources
Risk note
Simulations can omit execution costs and gaps. Historical results do not guarantee future outcomes.
Backtest Trading
Backtest Trading · iOS & Android
Run another setup, inspect every simulated trade, and keep your strategy research close at hand.