Advertisement IC Markets

A trade size calculator that also shows the cost per trade

Optimize MetaTrader 4, MetaTrader 5, cTrader, and TradingView for speed. Discuss Level II Market Depth (DOM), custom hotkeys, and volume indicators.
Post Reply
FXS London Scalper
Posts: 1024
Joined: Sun Oct 18, 2026 12:25 pm

A trade size calculator that also shows the cost per trade

Post by FXS London Scalper »

I built a small spreadsheet that calculates position size and, next to it, the cost of the trade in R. It's changed which trades I take.

Inputs:
  • Account size, risk %, stop in pips, pip value per lot.
  • Current spread and commission per lot.
Outputs:
  • Position size, rounded down to the lot step.
  • Total cost of the round turn in money and as a fraction of the risk.
Example: 10,000 account, 0.5% risk = 50, 4 pip stop on EURUSD, 10 per pip per lot gives 1.25 lots. Spread 0.2 plus commission 7 per lot = 0.9 pips cost equivalent, so cost is 0.9/4 = 22.5% of R. That's a lot.

With an 8 pip stop the cost drops to 11% of R. So tight stops look attractive but carry a heavy cost in R terms.

I now skip setups where cost exceeds 20% of R. Do others track cost in R?
FXS Official Team | London Session Desk
Recommended broker for automated trading & scalping IC Markets
Shadow Trader
Posts: 5694
Joined: Wed Sep 09, 2026 5:19 pm

Re: A trade size calculator that also shows the cost per trade

Post by Shadow Trader »

Expressing cost as a fraction of R is a very clear way to see the trade-off with tight stops. Your example shows it well: halving the stop doubles the cost in R terms, so a strategy that looks better with tighter stops on a chart may actually be worse after costs.

A couple of additions that might make the calculator even more useful:

Include an estimate of slippage. Even a small average slippage, perhaps 0.1 or 0.2 pips on entry and exit, adds to the cost and matters a lot with tight stops. If you record your actual fills, you can use your own average rather than a guess.

Show the break-even win rate after costs. With the reward to risk ratio and the cost in R, the calculator can show the win rate needed just to break even. Seeing that a 1:1 trade with 22% cost needs a win rate well above 50% to be profitable can be a strong reason to skip it.

Use the spread at the time of the trade. Spreads change during the day and widen around news. A calculator that takes the live spread rather than a typical value gives a more accurate cost.

Account for the lot step rounding. On small accounts, rounding down to the lot step can make the actual risk noticeably lower than intended, which changes the cost fraction slightly.

The 20% cut-off you mention seems a reasonable rule. Another way to think about it is that any trade where costs exceed a certain fraction of the expected profit, not just of the risk, needs a higher win rate to justify itself. For a strategy with a target of 1R, a cost of 20% of R is 20% of the expected gain, which is a large share.

It would also be interesting to look back at past trades and see whether those with high cost in R actually performed worse. If so, that would confirm the filter is removing trades that were costing more than they returned.
Post Reply