Commissions in Backtests

Why a backtest without commissions can make a breakeven filter look like your best one
Published Nov 13, 2026 | Strategy-cruncher

If your report shows "Profits in this backtest do not include commissions", every trade's profit is the raw price move times the shares. Nothing was taken out for commissions.

That might not seem like a big deal. Commissions are small, right? On a $50 stock they are. On a $0.30 stock they can eat almost the whole edge, and the Strategy Cruncher will happily find a filter that keeps exactly those trades.

The core problem: commissions are charged per share, but stocks move in percent. Every share costs the same to trade whatever its price, so the cheaper the stock, the more of each trade's move the commission takes. That's true however you size your positions.

The Same Commission on Different Stocks

Take a typical per-share commission of $0.005 per share, with a $1 minimum per side. You pay it once to get in and once to get out. These examples use constant-dollar sizing: every trade is a $10,000 position. Position sizing below covers other approaches.

Stock price Shares Round-trip commission Share of the position
$50.00 200 $2 0.02%
$5.00 2,000 $20 0.2%
$1.00 10,000 $100 1.0%
$0.30 33,333 $333 3.3%

Another way to see it: at $0.005 a side, every share costs a penny round trip. A $50 stock has to move 0.02% to pay for that penny. A $0.30 stock has to move 3.3%.

Now imagine a strategy that averages 1% per trade before commissions:

  • On the $50 stock, you keep 0.98%.
  • On the $1 stock, you break even.
  • On the $0.30 stock, you lose 2.3% on every trade.

The backtest without commissions says all three make 1%.

An Example

Here's a made-up short-selling backtest: 4,000 trades with constant-dollar sizing of about $10,000 a trade (up to 50,000 shares), exported without commissions. Before commissions it made $1.04M with a 49.6% win rate.

Split it on entry price at $0.50:

Entry price Trades Profit factor Average trade Total profit
$0.50 and above 3,009 1.59 $241 $725K
Below $0.50 991 1.89 $319 $317K

The cheap trades have the higher profit factor and the bigger average trade, so they look like the best part of the strategy. Here are the same trades with $0.005 per share and a $1 minimum per side taken out:

Entry price Profit factor Average trade Total profit Commission as a share of profit
$0.50 and above 1.59 → 1.51 $241 → $214 $725K → $645K 11%
Below $0.50 1.89 → 0.99 $319 → −$4 $317K → −$4K 101%

Profit factor 1.89 becomes 0.99. The trades below $0.50 go from the best-looking part of the strategy to a small loss: commissions take more than everything they made. The trades above $0.50 barely change.

Across the whole backtest, commissions come to $401K, 38% of the profit, and the win rate drops from 49.6% to 46.8%: some small winners were really small losers.

A filter built from the backtest without commissions would keep the wrong trades. It says the trades below $0.50 are worth $317K. They're worth nothing.

Position Sizing

The example uses constant-dollar sizing. Your backtest may size positions differently, and that changes how much commissions matter, but not in the way you might expect. Position Sizing in Backtests covers how each method weights your trades.

What sizing doesn't change: how much of each trade's move the commission takes. A trade on a $0.30 stock that moves 5% makes $0.015 a share and pays $0.01 a share in commission, whether you trade 1,000 shares or 30,000. Sizing only changes how many of those shares there are.

What sizing does change: how much each trade counts in the totals, and whether the minimum commission kicks in. Here's the same made-up backtest, with the same price moves on every trade, under four sizing methods:

Sizing Trades below $0.50: profit factor Their share of total profit before commissions Commission as a share of their profit
Constant dollars ($10,000) 1.89 → 0.99 30% 101%
Constant risk ($100 a trade) 1.89 → 0.99 12% 101%
Constant shares (1,000) 1.89 → 1.03 1% 95%
Constant shares (100) 1.89 → 0.61 1% 190%

Constant dollars gives every trade the same weight. Cheap trades buy far more shares, so they carry as much weight in the totals as any other trade, along with all of their commission.

Constant risk sizes each trade so a stop-out loses a fixed amount, say $100. Think of commission in terms of that risk (R): the commission is $0.01 for every share, and the number of shares is your risk divided by the distance to the stop. So commission per trade in R = $0.01 ÷ the stop distance in dollars:

Trade Stop distance Shares for $100 risk Round-trip commission In R
$50 stock, 1% stop $0.50 200 $2 0.02R
$5 stock, 2% stop $0.10 1,000 $10 0.10R
$0.30 stock, 10% stop $0.03 3,333 $33 0.33R

A setup that makes 0.3R a trade before commissions makes nothing on the $0.30 stock. The tighter the stop in dollars, the bigger the hit, whatever the stock's price. So risk-based sizing also punishes tight stops on mid-priced stocks: a 5-cent stop costs 0.2R a trade.

Constant shares makes cheap trades small positions, so they barely move the backtest's total profit, and a filter on average profit won't favor them. But profit factor and win rate count every trade the same, so a split on those still makes the cheap trades look like the best part of the strategy.

Small positions run into the minimum. At 100 shares, $0.005 a share is $0.50, so you pay the $1 minimum: $2 round trip on a $30 position in a $0.30 stock, almost 7%. That's why the 100-share row is worse than the 1,000-share row. The same thing happens with constant dollars or constant risk when the position is small.

Share caps (a maximum number of shares per trade) shrink the cheap trades' positions. That cuts how much they count in the totals, but not the share of each move the commission takes.

Other kinds of commission behave differently. A percent-of-value commission (say 0.1% of each side) costs the same share of the move on every stock at every size, so it doesn't favor or punish cheap stocks. A flat fee per trade (say $4.95) hits small positions hardest, whatever the stock's price.

A quick check that works with any sizing: compare a filter's average profit per share with your round-trip commission per share. If the trades a filter keeps make 1.5 cents a share on average and you pay a penny, two thirds of the edge goes to your broker.

What Commissions Don't Cover

Commissions aren't the only cost a backtest can leave out, and the cheap trades are usually hit hardest by the others too:

  • Slippage. Low-priced stocks often have wide spreads compared to their price, and fills at the exact backtest price are less likely.
  • Borrow costs. For short trades, hard-to-borrow stocks can cost far more to borrow than the commission, and some can't be borrowed at all.
  • Exchange and regulatory fees. Usually small, but they add up on large share counts.

The Strategy Cruncher can only check commissions. Treat a filter that favors cheap stocks with suspicion even after commissions are included.

How to Include Commissions

The fix is to set your commission in the backtester and export again, so each trade's profit already has it taken out.

AmiBroker. Set it in Analysis Settings → General → Commissions & rates, or in your AFL so it travels with the formula:

SetOption("CommissionMode", 3);       // $ per share
SetOption("CommissionAmount", 0.005); // $0.005 per share, each side

AmiBroker takes the commission out of the Profit column of the trade list, which is what the Strategy Cruncher reads.

CloudQuant / KITE. If your results include entry_fees and exit_fees columns, the Strategy Cruncher takes them out of each trade's profit for you.

ThinkAlpha. The Strategy Cruncher takes the fees column out of each trade's profit.

Other backtesters. Set the commission in the backtester's settings before you export, so the profit column is net of commissions.

Trade Ideas OddsMaker. OddsMaker has no commission setting. It only exports how far each trade moved, and the Strategy Cruncher uses constant-dollar sizing of about $1,000 a trade to work out a profit. You'll see this warning on every OddsMaker report. At that size, $0.005 per share with a $1 minimum costs about $33 round trip on a $0.30 stock (3.3%) and $2 on a $50 stock (0.2%, because the 20 shares pay the $1 minimum each side). Before you trust a filter that favors low-priced stocks, check that its average move is well above those numbers.

How the Strategy Cruncher Checks

For every trade, the Strategy Cruncher compares the price move (exit price minus entry price, times shares) with the trade's profit. With commissions, profit always comes out a little below the price move. If they match on almost every trade, allowing for rounding, nothing was taken out and you see this warning.

When the backtest does include commissions, the gap between the two shows what kind they are: a per-share rate (and its minimum), a percent of the trade's value, or a flat amount per trade.