/ Check 3 · The cost that zeroes it

How much do commissions and slippage change a backtest?

Often more than the edge. Costs are quoted as a % of price, but the edge is measured in R, the size of one full loss. Put both in the same unit and you can see the round-trip cost at which the strategy stops making money.

The short answer

Every strategy has a round-trip cost that zeroes it: expectancy per trade (in R) times the stop distance (as a % of price). If your real fees, spread and slippage sit near that number, the backtest is a bet on execution, not on the signal. Many reports are run with costs set to zero, and the chart looks the same either way.

A worked example

A backtest shows a 45% win rate with the average win 1.5 times the average loss. Before costs, break-even is 40%, and the expectancy is 0.45 × 1.5 − 0.55 = 0.125R per trade. That looks like an edge.

Now add a round-trip cost of 0.2% of price (fees both ways plus slippage both ways). What that costs in R depends on the stop:

  • Stop 1.5% away: the cost is 0.2 ÷ 1.5 = 0.133R a trade, more than the whole 0.125R edge. Expectancy after costs is about −0.01R, and break-even rises from 40% to 45.3%. The edge is gone at a round-trip cost of about 0.19%.
  • Stop 3% away: the same 0.2% is only 0.067R. About 0.06R a trade is left, break-even after costs is 42.7%, and the edge survives costs up to about 0.38%.
  • Stop 0.75% away: 0.267R a trade, more than twice the edge. After costs the strategy loses about 0.14R a trade and needs a 50.7% win rate just to break even.

Same signals, same win rate, same 0.2% cost. A tighter stop makes every trade pay a bigger slice of R for the same fees.

Work it out for your own backtest

Enter the report’s cost assumption, its stop distance, win rate and payoff:

Cost per trade0.133R
Expectancy before costs+0.13R
Expectancy after costs-0.01R
Break-even win rate before / after costs40.0% / 45.3%
Round-trip cost that zeroes the edge0.19% of price

Costs take the whole edge: +0.13R before costs becomes -0.01R per trade.

The full calculator is at /tools/cost-in-r. For a portfolio that rebalances daily, the turnover-cost calculator fits better.

What to check in the report

The cost settings. Look for the commission and slippage the test used. Zero, or blank, means the result is before costs.

The stop distance or average loss. You need it to turn a % cost into R. If the report gives average loss in money and position size, divide one by the other.

Where it trades. Spread and slippage on a thin market or a fast open are not the same as on a liquid index at midday. Use a cost you could actually get, then compare it with the cost that zeroes the edge.

This is check 3 of 10

The one-page Backtest Verification Checklist, free. Confirm the email and the PDF opens straight away; one worked check each Tuesday after that.

How these numbers were worked out

Expectancy before costs is win rate × payoff − (1 − win rate), in R, where 1R is the average loss. Cost in R is the round-trip cost as a % of price divided by the stop distance as a % of price. Break-even before costs is 1 ÷ (1 + payoff); after a cost of c R it is (1 + c) ÷ (1 + payoff). The cost that zeroes the edge is expectancy before costs × stop distance. These are the formulas the calculator runs. The figures are arithmetic examples, not results of any strategy, and nothing here is investment advice.

Historical simulations are not live results. Nothing on this site is investment advice.