← Backtest Learning Center

Slippage in Backtesting: Why Good Results Can Disappear

Maintained by the Backtest Editorial Team · Updated · Editorial policy

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.

Table numbers use a decimal point and commas to separate thousands.
Slippage per fillEntry (USDT)Exit (USDT)Profit after stated cost (USDT)
0 bps100,000101,000100.00
5 bps100,050100,949.589.95
20 bps100,200100,79859.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.