Every trade pays something to get in and out, and these costs are easy to ignore because they look small. Converting them into R, a fraction of your risk, shows how much of each trade they really consume.
Spread
The spread is the gap between the bid and the ask. A buy fills at the ask and a sell fills at the bid, so as soon as you open a trade you are behind by the spread. A trade needs price to move at least the spread in its favour just to break even.
Spreads are not constant. They are often tight in liquid hours and wider around news, at rollover and in quiet markets. In QuantRaider the Data node outputs Spread at high and Spread at low, so a strategy graph can read the spread attached to each candle.
Commission and swap
Some accounts add a commission, a fee charged per lot or per trade, usually in exchange for a tighter spread. It is often quoted per round turn, which covers both the opening and closing of the trade. A swap (also called rollover or overnight financing) is a charge or credit applied when a position is held past the daily cut-off. It depends on the instrument, the direction and the interest-rate difference, and many brokers apply a triple swap once a week.
Costs expressed in R
A cost of 1.9 pips sounds trivial until you compare it with the stop. The cost in R is the total cost in pips divided by the stop distance in pips. The same cost is a small fraction of a wide stop and a big fraction of a tight one.
Cost in R = (spread + commission + slippage, in pips) / stop distance in pipsWorked example
The cost of a 15-pip-stop trade
- Spread is 1.2 pips. Commission is $7 per round-turn standard lot, and a pip on 1 lot of EUR/USD is worth about $10 in USD, so commission = 7 / 10 = 0.7 pip.
- Total cost = 1.2 + 0.7 = 1.9 pips.
- Stop distance is 15 pips, so cost in R = 1.9 / 15 = 0.1267, about 0.13R (rounded to 2 decimals).
- A 2R target then nets about 2 - 0.13 = 1.87R if it is hit, and a stop-out loses about 1 + 0.13 = 1.13R.
- Break-even win rate with a 2R target and no costs = 1 / (1 + 2) = 33.3%. With the costs, a win is 1.8733R and a loss is 1.1267R, so break-even = 1.1267 / (1.8733 + 1.1267) = 1.1267 / 3 = 37.6%.
- The same 1.9 pips on a 5-pip stop would be 1.9 / 5 = 0.38R per trade, three times as heavy.
A 1.9-pip cost is about 0.13R on a 15-pip stop, which lifts the break-even win rate for a 2R target from 33.3% to about 37.6%.
Key takeaways
- You buy at the ask and sell at the bid, so every trade starts behind by the spread.
- Commission is a fee per lot or trade, and swap is a daily charge or credit for holding overnight.
- Cost in R is the total cost in pips divided by the stop distance in pips, so tight stops make costs far more significant.
- Costs raise the break-even win rate: a 2R target needs about 37.6% rather than 33.3% when costs are 0.13R.