Backtests are run on closing prices. Real trades happen against an order book with a finite number of shares at each level. The difference between the two — slippage — is a cost that never appears on the chart and quietly decides whether a strategy is viable.
The board shows a ₹500 ticket. You reach the counter and only two seats remain at ₹500; the rest are ₹560. If you need six seats, your average cost is nothing like ₹500 — and the board was never lying.
That is market depth. The screen shows the last traded price; the order book shows how many shares actually exist at it. Your fill is the average of everything you had to consume.
The three costs, stacked
| Cost | What it is | When it bites |
|---|---|---|
| Spread | The gap between best bid and best ask | Every single trade, both ways |
| Impact | Your own order pushing the price | Large orders in thin stocks |
| Timing | Price moving between decision and execution | Fast markets, gaps, news |
Increase the order size and watch it eat through successive levels. The average fill drifts away from the touch price faster than most people expect.
What it does to a strategy
Reducing it
- 1Filter by traded value, not price
A minimum daily turnover requirement removes most of the problem before it starts. Cap your position at a small percentage of it.
- 2Use limit orders where you can
Market orders guarantee execution, not price. In anything but the most liquid names, a limit order at or near the touch is worth the occasional missed fill.
- 3Avoid the first and last few minutes
Spreads are widest at the open and the close. Unless your strategy specifically needs those windows, the middle of the session is cheaper.
- 4Break up large orders
Several smaller orders over a period consume the book less aggressively than one large one.
- 5Measure your actual slippage
Record intended price against fill price for a month. Most people have never measured it and are surprised by the total.
A strategy shows a 0.6% average gain per trade in a backtest run on closing prices. Realistic round-trip costs are 0.5%. What is the honest conclusion?
Board pe ticket ₹500 dikh raha hai. Counter pe pata chala ₹500 wali sirf do seat hain, baaki ₹560 ki. Aapko chhe chahiye — toh aapka average ₹500 nahi hua. Chart bhi wahi board hai: woh last traded price dikhata hai, yeh nahi ki utni quantity thi bhi ya nahi.
- The chart shows a traded price, not a price available to you in your size.
- Spread, impact and timing stack on top of brokerage and taxes.
- The shorter the holding period, the more slippage decides viability.
- Filter by daily traded value and cap position size as a share of it.
- Subtract realistic round-trip costs from a backtest before believing it.
Mark it done to track your progress through the curriculum.
Common questions
Short, direct answers to what people ask about this topic.
- slippage meaning in trading
- Slippage is the difference between the price you expected to trade at and the price you actually got. It comes from three stacked sources — the bid-ask spread you cross going in and coming out, the impact of your own order eating through successive levels of the order book, and the price moving between your decision and your execution. None of it appears on the chart, which is why backtests run on closing prices systematically overstate what a strategy earns.
- the gap between the best bid and the best ask on the order book is called
- The bid-ask spread. It is the smallest cost you pay on every trade in both directions, it widens as a stock gets thinner, and it is widest in the first and last few minutes of the session. Depth is a separate question: the spread tells you the price of the first share, while market depth tells you how many shares exist at that price before your order has to reach up to worse ones.
- why is my fill price worse than the price i saw on the chart
- Because the chart shows a price at which somebody traded, not a price available to you in your size. The last traded price sits at the top of an order book holding a finite number of shares at each level, so a large order consumes the best level and then the next, and your fill is the average of everything you had to take. In a liquid largecap that gap is small; in a thin midcap a modest order can move the price several percent.
- does a strategy that makes 0.6% per trade still work after costs
- Not with any confidence if realistic round-trip costs are around 0.5%. That leaves a 0.1% net edge, which sits well inside the error of any cost estimate — and slippage worsens in exactly the fast, gapping conditions short-horizon strategies trade in. Costs here mean the spread both ways, impact cost, brokerage, STT, stamp duty and GST added together, and this is the single most common way a backtest looks profitable and loses money live.
- market order or limit order in an illiquid stock
- Limit orders are the usual answer in anything but the most liquid names, because a market order guarantees execution but not price — in a thin book it can walk several levels up before it fills. The trade-off is that a limit order at or near the touch will occasionally miss the fill entirely. Breaking a large order into smaller pieces over a period also consumes the book less aggressively than one big order does.