How to Algo

Slippage and Costs: How Much Edge per Trade Survives

How much slippage and commission to assume in a futures backtest, and how many ticks of edge per trade a strategy needs before costs erase it entirely.

Part 8 of 20 · How to Algo · Previous: Limit order fills · Next: Win rate vs expectancy

Before you look at an equity curve, a Sharpe ratio or a win rate, look at one number: the average net trade, expressed in ticks of the instrument. If it is below two or three ticks, stop. The strategy may be statistically real, but its profit is a rounding error on your slippage, and live slippage is never as tidy as a backtest’s constant.

This part is about how to set the cost model, why it decides more strategies than the signal does, and which ideas die here first.

ES net result per trade against slippage for 2-, 4.5- and 8-tick gross edges; they break even at 1.64, 4.14 and 7.64 ticks of slippage, with the overnight drift marked at 52% eaten

What a round trip actually costs

A round trip in a futures contract pays three things:

  1. Commission and exchange fees, fixed per contract per side.
  2. The spread, if you cross it to enter or exit. A market buy fills at the offer, a market sell at the bid.
  3. Slippage beyond the spread: the book moving while your order travels, a stop filled several ticks through, thin moments around news or the session close.

Our default for ES is $4.50 commission plus two ticks of slippage per round trip, $29.50 in total, applied to every simulated trade, in every session we test. Two ticks covers the spread on both sides in normal conditions plus a little.

We later measured how realistic that is. Across 20.2 million top-of-book snapshots of our own ES depth recording, the spread is one tick on 80.95% of them and the mean is 1.542 ticks, $19.28, against the $25.00 of slippage we charge. So in normal hours our default overcharges by about $5.72 a round trip. Around the daily maintenance halt the book is one tick wide only 3.20% of the time, and the default is too kind. The spread study breaks it down by half hour; if your strategy trades at unusual times, use the spread at those times.

The arithmetic of erosion

Net edge per trade is a straight line in slippage:

net = gross − commission − slippage_ticks × tick_value

The question is where that line crosses zero. Measured in ticks, the answer is easy to remember: the gross edge in ticks minus the commission in ticks is the slippage you can survive. On ES, $4.50 of commission is 0.36 ticks. A strategy with a gross edge of three ticks survives about two and a half ticks of slippage, which sounds comfortable until you notice that a single bad fill at a stop takes several.

InstrumentTick valueCommission per round tripCommission in ticksGross edge needed to net 2 ticks after 2 ticks of slippage
ES$12.50$4.500.36about 4.4 ticks, $55
NQ$5.00$4.500.90about 4.9 ticks, $24.50
MES$1.25$1.240.99about 5.0 ticks, $6.24

These are the commission assumptions we use in our own tests; yours will differ, so redo the division. The micro line shows the trap of small contracts: the tick shrinks by a factor of ten and the commission by much less, so the same strategy needs more ticks of edge on MES than on ES. For a multi-day strategy with an edge of dozens of points, the difference disappears.

Round-trip cost in ticks with one and two ticks of slippage: ES 1.36 and 2.36, NQ 1.90 and 2.90, GC and CL 1.45 and 2.45, MES 1.99 and 2.99, MNQ 3.48 and 4.48

With two ticks of slippage, a round trip costs 2.36 ticks on ES ($29.50) and 2.90 ticks on NQ ($14.50). On MNQ the commission alone is 2.48 ticks before any slippage. Micros are cheap in dollars and expensive in ticks.

Who dies first

Scalpers. A machine-learning model we built for NQ on one year of ticks (5.9 million decisions, a symmetric 8-tick barrier with a 30-second limit, walk-forward) produced an AUC between 0.5002 and 0.5076 across nine folds. The loss per trade was 2.07 ticks against 2.00 ticks of costs. The model contributed essentially nothing; the loss was the fee.

That result was predictable before training. With a symmetric barrier of B ticks and costs of C ticks, the break-even hit rate is (B + C) / (2B). For 8 ticks and 2 ticks of cost, that is 62.5%. For a 4-tick barrier it is 75%, for 2 ticks 100%. Small targets are not hard; they are arithmetically impossible for a taker, however good the model. Do this division before writing a line of model code. Part 9 generalises it.

Thin edges in thin sessions. An NQ pullback rule we ported to the Asia session was statistically real at t = 3.6 over 10,590 trades, and earned $7.67 a trade, about one and a half ticks. Overnight spreads on NQ run wider than in regular hours. One extra tick of slippage dropped it to t = 1.26; two made it negative. The session audit shows the whole table.

Real effects that need one trade per observation. The S&P earns 71.1% of its full-session return while the cash market is closed, $56.45 a night gross at t = 2.77 on our ES data. Collecting it with a nightly round trip costs $29.50, about 52% of the gross figure, and the net result drops to t = 1.32. The effect does not weaken; the trade you must place to collect it eats it. The overnight drift study has the numbers.

Microstructure. Order-book imbalance on ES predicts the next 30 seconds on 73 of 76 sessions and is worth $4.19 in the best case. Crossing the spread costs $12.50. Real and unreachable.

Options. Spreads on options are measured in percent of premium, not ticks. Across our SPY recording the volume-weighted spread is 14.13% of the option’s value, from 0.57% at the money 31 to 90 days out to 66.67% far out of the money on expiry day (what SPY options cost to trade). An earnings calendar spread we tested had a real volatility-crush effect and a round-trip bid/ask equal to a median 50% of the capital at risk. At midpoints it was flat; at fills you could get, the edge was gone.

The opposite case: slow strategies barely notice

For a multi-day strategy the cost model is almost irrelevant. Our RSI-2 test on ES holds for several sessions and averages far more than any plausible slippage. On the micro contract, raising the commission six times over cost $505 across all 202 trades. That insensitivity is a feature to look for: a result that hardly moves when you double the costs is not living on an assumption.

This is also why holding period and cost tolerance usually travel together. The shorter the hold, the smaller the gross move per trade, the larger the share of it that goes to the spread.

Set costs before you search parameters

Costs must be in the backtest while you search parameters, not subtracted afterwards. A parameter that increases trade frequency increases total costs. If you optimise gross results and subtract an average cost at the end, the search favours high-frequency variants whose gross edge is too small to survive. With costs inside the engine, those variants lose during the search and never reach your shortlist.

The same logic applies to slippage ladders. We report every intraday result at zero, one, two and three ticks of extra slippage. A strategy whose sign flips between one and two extra ticks goes no further.

Report per trade, not in totals

Totals hide costs. A strategy with 10,000 trades and $50,000 of profit earns $5 a trade, less than half an ES tick. The same total from 200 trades is $250 a trade. In an NQ machine-learning test, a model’s total loss looked much smaller than its random-entry placebo’s. The difference came entirely from the model trading half as often; per trade, it chose slightly worse trades than chance. Always divide by the number of trades before comparing.

Checklist

  1. State commission and slippage per round trip in dollars and in ticks before the first run.
  2. Measure the spread at the times your strategy trades; use that, not a global average.
  3. Apply costs inside the engine during parameter searches.
  4. Compute the average net trade in ticks; below two or three, stop.
  5. For barrier strategies, compute the break-even hit rate (B + C) / 2B before modelling.
  6. Run a slippage ladder of 0, 1, 2 and 3 extra ticks; kill sign flips.
  7. On micro contracts, recompute commission in ticks.
  8. For options, price at bid and ask, never at the midpoint.
  9. Compare strategies per trade, never by totals.

Costs decide whether an edge exists after you trade it. The next question is how to read the statistics that describe it. Part 9: Win rate vs expectancy and the break-even formula.

Frequently asked questions

How much slippage should I assume in a futures backtest?

Measure it rather than guess, but a conservative default for liquid index futures is one tick per side, two per round trip, on top of commission. Our ES depth recording shows a mean spread of 1.542 ticks, $19.28, so two ticks is a mild overcharge in normal hours and an undercharge around the daily maintenance halt.

What does a round trip cost on ES or NQ?

With our assumed $4.50 commission and two ticks of slippage, an ES round trip costs $29.50, or 2.36 ticks, and an NQ round trip $14.50, or 2.90 ticks. On the micro contracts the commission alone is a larger share of the tick: on MNQ it is 2.48 ticks before any slippage.

How large does the average trade need to be?

Several ticks after costs. An edge of one or two ticks is wiped out by one tick of extra slippage, and live slippage varies more than backtests assume. An overnight NQ setup of ours averaged $7.67 a trade at t = 3.6; one extra tick of slippage dropped it to t = 1.26 and two made it negative.

Why do high-frequency strategies fail first?

Because costs are paid per trade and the gross edge per trade shrinks with the holding period. A machine-learning scalper we tested on NQ lost 2.07 ticks per trade against 2.00 ticks of costs, so the loss was the fee. With an 8-tick target and 2 ticks of cost, a scalper needs to win 62.5% of trades just to break even.

Can an effect be statistically real but not tradable?

Yes, and it is common. The S&P's overnight drift is significant at t = 2.77 gross on our ES data, but a nightly round trip costs about 52% of the gross edge and the net result drops to t = 1.32. Top-of-book imbalance on ES predicts the next move on 73 of 76 sessions and is worth $4.19 in the best case, against $12.50 to cross the spread.

Keep reading

How to Algo

Backtest vs Live Trading: Reconciling Every Trade

Why live trading drifts from the backtest: fills, latency, data gaps, rolls and code divergence. How to replay your live engine and reconcile trade by trade.

How to Algo

Tick Data vs Bars: What Resolution Your Algo Needs

Daily bars, minute bars, ticks or order-book depth? Match data resolution to the decision your algo makes, and see what a bar hides about stops and targets.