1nTest · strategy backtester and trading bot builder

Trade cost calculator in R

What one trade costs in commission, spread and swap — in dollars and as a share of the risk (R). A stop of 10 pips and a stop of 100 pips pay the same commission per lot, but a very different share of the risk.

Asset
Direction
Balance
$
Risk per trade
%
Stop-loss
pips
Entry hour (server time)
Nights held
Includes the triple night (Wednesday)

EURUSD: 1 pip = 0.0001 in price, worth $10.00 per lot at 1.1256 on October 5, 2026.

Cost in R0.055 R
Cost$5.46
Lots0.67
Commission$3.35
Spread (0.32 pips)$2.11
Swap (0 charges)$0.00

Spread by entry hour: narrowest at 19:00 (0.28 pips), widest at 00:00 (2.29 pips).

How it is calculated

Commission is charged per lot, round turn. Spread is taken for the hour of entry on the broker's server clock: around the daily rollover and in the Asian session it is several times wider than in London. A spread wider than the stop costs no more than the stop — the position is simply stopped out.

Swap is charged at every daily rollover the position is held through. Once a week the broker charges three nights at once: on Wednesday for currency pairs and metals, on Friday for indices and oil. Swap follows the interest-rate difference, so it can be a cost or a credit.

Numbers are measured, not taken from a price list: commission from real account deals, spreads from quote history by hour, swaps from money-market rates plus a measured broker markup. They are valid at the reference date below; your broker's figures may differ.

Cost in R = cost in dollars ÷ risk in dollars. A strategy whose average trade makes +0.10 R before costs and pays 0.12 R in costs loses money.

Questions

Why measure cost in R and not in dollars?

Because a strategy earns and loses in R. The same commission per lot is a small share of the risk with a wide stop and a large share with a tight one. Comparing the cost in R with the strategy's average result per trade shows at once whether the costs eat the edge.

Why is the spread so much wider at some hours?

Around the daily rollover on the broker's server and outside the main sessions liquidity is thin and brokers widen the spread. An entry in those hours can cost several times more than the same entry in the London or New York session.

Can swap be a credit?

Yes. Swap follows the difference between the interest rates of the two currencies or the financing rate of the index, plus the broker's markup. For one direction it is often a cost, for the other it can be a small credit.

For education. The figures are measured for one commission-charging broker at the reference date and are not a quote; your broker's conditions may differ.

← All calculators