1nTest · strategy backtester and trading bot builder

Gross vs net: how much of a backtest's profit trading costs take

We ran the same 6 strategies twice, without costs and with commission, swap and bid/ask prices. Together they made +77.90 R before costs and +13.59 R after, so costs took 83% of the result. 2 of the 6 went from a profit to a loss.

Why a backtest without costs misleads

Many backtesting tools start with costs switched off or with a fixed small spread. A strategy that trades often on tight stops can look profitable that way and lose money in reality. The only way to know how much the costs matter for a given strategy is to run it both ways.

The result

Fair value gap + liquidity sweep
Before costs+25.70 R
After costs+21.87 R
Range deviation
Before costs+16.88 R
After costs+10.48 R
Order block + break of structure
Before costs−1.00 R
After costs−4.35 R
Expansion and consolidation
Before costs+5.43 R
After costs+4.59 R
Level raid + break of structure
Before costs+27.30 R
After costs−18.35 R
Asian session range
Before costs+3.61 R
After costs−0.66 R

Total result in R over four years, where one R is the amount risked per trade. The level raid strategy, with by far the most trades on fifteen-minute stops, lost more to costs than the other five together.

What to take from it

  • Always read the result after costs. A result before costs answers a different question.
  • The more trades and the tighter the stop, the larger the share of profit that goes to costs; see our study of the cost per trade in R.
  • A strategy whose profit before costs is small relative to the number of trades will not survive them.

How we measured

  • The 6 published example backtests: each on two or three assets, period 2022-01-01 to 2026-01-01, fixed risk of 1% per trade.
  • With costs: commission and swap measured for one commission-charging broker, entries and exits at bid and ask prices. Without costs: the same configuration with the broker profile switched off, so prices are the chart prices.
  • Engine backtests on the production server; all closed trades count.

Backtests run on October 24, 2026.

Questions

Is the spread in the 'after costs' column?

Yes. With bid and ask prices the spread is paid inside the entry and exit prices, so it is part of the result after costs.

For education, not investment advice. Past results, including backtests, do not guarantee future results.

← All research