Skip to content
LeetQuant
QR08 Backtesting and Research Design

QR08 · Backtesting and Research Design · Lesson 5 of 6

Transaction Costs and Capacity

Spread, commissions and market impact, turnover, the break-even cost per trade, turning gross into net Sharpe ratios, and the capacity of a strategy under square-root impact.

16 min

Objective

Many backtests that look excellent gross are worthless net. You should be able to build a simple cost model, express costs per dollar traded, compute a strategy's break-even cost and net Sharpe ratio from its turnover, and estimate how much capital it can run before impact eats the edge.

Components of cost

Measure every cost per dollar traded, in basis points:

  • Half-spread. Crossing the spread costs half of it relative to the mid on each trade; a round trip costs the full spread.
  • Commissions and fees, including exchange fees, borrow costs for shorts and taxes such as stamp duty.
  • Market impact. Your own order moves the price. A widely used empirical rule is the square-root law,
impact≈Y σdailyQV,\text{impact} \approx Y\,\sigma_{\text{daily}}\sqrt{\frac{Q}{V}} ,

where QQ is the order size, VV the daily volume and YY a constant of order one. Trading 0.25% of daily volume in a stock with 2% daily volatility costs about 1×0.02×0.05=101 \times 0.02 \times 0.05 = 10 basis points. Impact is concave in size, but it is per dollar, so total impact cost grows like Q3/2Q^{3/2}.

  • Delay and opportunity cost. Prices move between signal and fill, and orders that do not fill miss the trade.

Turnover and the break-even cost

Define turnover TO\text{TO} as annual dollars traded divided by capital (counting both buys and sells). A portfolio replaced completely once a month trades twice its capital per month (sell the old book, buy the new), so TO=24\text{TO} = 24. With cost cc per dollar traded:

annual cost=TO×c,net return=g−TO×c,\text{annual cost} = \text{TO} \times c, \qquad \text{net return} = g - \text{TO} \times c ,

and the break-even cost is cBE=g/TOc_{\text{BE}} = g/\text{TO}. Because costs barely change volatility, the net Sharpe ratio is approximately

SRnet≈SRgross−TO×cσ.\text{SR}_{\text{net}} \approx \text{SR}_{\text{gross}} - \frac{\text{TO} \times c}{\sigma} .

The break-even cost is the first number to compute for a fast strategy: compare it with the realistic cost of trading the names, and the decision is often obvious. Ways to cut turnover without killing the signal include trading only when the desired change exceeds a band, smoothing the signal and blending fast and slow signals.

Capacity

If the strategy trades a fixed fraction of each stock's volume per dollar of capital, participation grows in proportion to assets AA, and by the square-root law cost per dollar traded is c(A)=c0+bAc(A) = c_0 + b\sqrt{A}. Net return and dollar profit are

r(A)=g−TO (c0+bA),P(A)=A r(A).r(A) = g - \text{TO}\,(c_0 + b\sqrt{A}), \qquad P(A) = A\,r(A) .

Setting r=0r = 0 gives the break-even size ABE=(g−TO c0)/(TO b)\sqrt{A_{\text{BE}}} = (g - \text{TO}\,c_0)/(\text{TO}\,b). Setting P′(A)=(g−TO c0)−32 TO bA=0P'(A) = (g - \text{TO}\,c_0) - \tfrac32\,\text{TO}\,b\sqrt{A} = 0 gives

A∗=23ABE,A∗=49ABE.\sqrt{A^{\ast}} = \tfrac23 \sqrt{A_{\text{BE}}}, \qquad A^{\ast} = \tfrac49 A_{\text{BE}} .

Profit is maximised well before returns hit zero, and at that size the net return is one third of the pre-impact return g−TO c0g - \text{TO}\,c_0. "Capacity" in conversation usually means a size where the net Sharpe is still acceptable, which is smaller again.

Worked example

from gross to net Sharpe

(a) A monthly-rebalanced equity strategy earns a gross 8% a year with 10% volatility and turnover 20. All-in costs are 10 basis points per dollar traded. What are the break-even cost and the net Sharpe ratio? (b) A daily reversal strategy has a gross Sharpe ratio of 3 at 10% volatility and trades twice its capital every day (252 trading days). What are its break-even cost and its net Sharpe at 5 basis points per dollar traded?

Show solution

(a) Gross Sharpe 0.80.8. Annual cost 20×0.0010=2%20 \times 0.0010 = 2\%, so net return is 6% and the net Sharpe ratio is about 0.60.6. Break-even cost 8%/20=0.40%8\%/20 = 0.40\%, i.e. 40 basis points per dollar traded: comfortable for liquid large caps.

(b) Gross return 3×10%=30%3 \times 10\% = 30\%. Turnover 2×252=5042 \times 252 = 504, so the break-even cost is 30%/504≈5.9530\%/504 \approx 5.95 basis points. At 5 basis points the annual cost is 504×0.0005=25.2%504 \times 0.0005 = 25.2\%, leaving 4.8% net and a net Sharpe ratio of about 0.480.48. A spectacular gross Sharpe of 3 becomes mediocre, and a one-basis-point error in the cost estimate moves the net Sharpe by 504×0.0001/0.10≈0.5504 \times 0.0001/0.10 \approx 0.5. For high-turnover strategies the cost model is the strategy.

Worked example

how big can it get?

Take strategy (a): g=8%g = 8\%, TO=20\text{TO} = 20, fixed costs c0=5c_0 = 5 basis points, and impact of 10 basis points per dollar traded when running 100 million dollars, scaling with A\sqrt{A}. Find the break-even size, the profit-maximising size, and the net return and profit there. What is the net Sharpe at 100 million dollars?

Show solution

Calibrate impact. b108=0.0010b\sqrt{10^8} = 0.0010 gives b=10−7b = 10^{-7} (with AA in dollars).

Pre-impact return. g−TO c0=0.08−20×0.0005=7%g - \text{TO}\,c_0 = 0.08 - 20 \times 0.0005 = 7\%.

Break-even. ABE=0.07/(20×10−7)=35,000\sqrt{A_{\text{BE}}} = 0.07/(20 \times 10^{-7}) = 35{,}000, so ABE≈1.225A_{\text{BE}} \approx 1.225 billion dollars.

Profit-maximising size. A∗=49×1.225≈0.544A^{\ast} = \tfrac49 \times 1.225 \approx 0.544 billion dollars. There, impact per dollar traded is 10−7×23,333≈23.310^{-7} \times 23{,}333 \approx 23.3 basis points, the net return is 7%−20×0.233%≈2.33%7\% - 20 \times 0.233\% \approx 2.33\% (one third of 7%), and profit is 0.544×2.33%≈12.70.544 \times 2.33\% \approx 12.7 million dollars a year.

At 100 million dollars. Net return 7%−20×0.10%=5%7\% - 20 \times 0.10\% = 5\%, net Sharpe 0.50.5. At the profit-maximising size the net Sharpe is only about 0.230.23: the size that maximises the firm's dollars is not the size that maximises the investor's Sharpe ratio.

Knowledge check

A strategy earns 6% a year gross with turnover 30 (annual dollars traded over capital). What all-in cost per dollar traded makes it break even?

Knowledge check

Cost per dollar traded is c0+bAc_0 + b\sqrt{A} for assets AA. At what size is dollar profit maximised, relative to the break-even size ABEA_{\text{BE}} at which net return is zero?

Knowledge check

A stock's quoted spread is 4 basis points. A backtest assumes you buy and sell at the mid. Ignoring impact and fees, what cost per dollar traded is it missing for orders that cross the spread?

Key takeaways

  • Express costs per dollar traded: half-spread, fees, borrow and square-root impact YσQ/VY\sigma\sqrt{Q/V}.
  • Annual cost is turnover times cost per dollar; break-even cost is gross return over turnover.
  • Net Sharpe is roughly gross Sharpe minus TO c/σ\text{TO}\,c/\sigma; for fast strategies small cost errors swing the answer.
  • With square-root impact, profit peaks at 49\tfrac49 of the break-even size, where net return is one third of the pre-impact return.

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).