Costs in a backtest

Every trade in our backtests pays a cost, on by default. What is charged, what is not, and why turnover decides how much it matters.

On this page3 sections
  1. 1What is charged
  2. 2What is not charged
  3. 3The comparison line pays nothing

A backtest with free trading flatters any rule that trades often. Ours charges a cost on every trade unless you switch it off, and says clearly when it is off.

What is charged

  • Each trade pays a number of basis points of the amount bought or sold. One basis point is 0.01%.
  • The default is 10 basis points, which is 0.10% of each trade. In the backtester you can set it anywhere from 0 to 200.
  • The cost is taken from the portfolio at the moment of the trade, so it compounds.
  • The page shows the total drag: how much of the portfolio costs consumed over the whole test.
What turnover does
  1. Cost: 10 basis points per trade.
  2. A rule that replaces 20% of the portfolio each month trades about 240% of its value a year on one side, 480% counting both the sells and the buys.
  3. Yearly cost: about 0.48% of the portfolio.
  4. The same rule rebalanced quarterly at 20% a time: about 0.16% a year.

What is not charged

  • Taxes. Frequent rebalancing in a taxable account turns gains into short-term gains. This can be larger than every other cost combined and depends entirely on you.
  • Wider bid-ask spreads on small or thinly traded stocks. Ten basis points is reasonable for large US stocks and optimistic for small ones.
  • Price impact. A large order moves the price against itself.
  • Interest on cash. Empty slots sit in cash at 0%. Real cash would have earned a little, so this one works against the strategy.

The comparison line pays nothing

SPY is bought once and held, so it has almost no trades to charge. Its own fund fee is already in its price. This is fair: it is what holding the index would really have cost.

Something here wrong or unclear? Tell us. Informational only, not investment advice.

After hours

That's a wrap.

17hrs23min10sec

Market opens Friday, Nov 13 at 9:30 AM ET