# Spread, commission and swap

> The costs you pay on every trade, and how to express them as a fraction of your risk.

Source: https://quantraider.com/learn/trading-costs/spread-and-fees

Course: Orders, spreads and costs (lesson 3 of 6) · Level: Beginner · 4 min

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.

*Figure: Bid and ask levels with the gap between them marked as the spread; buys fill at the ask and sells at the bid.*

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 pips
```

Convert any commission into pips first: with $10 per pip on 1 lot, $7 per lot is 0.7 pip.

**Worked example: The cost of a 15-pip-stop trade**

1. 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.
2. Total cost = 1.2 + 0.7 = 1.9 pips.
3. Stop distance is 15 pips, so cost in R = 1.9 / 15 = 0.1267, about 0.13R (rounded to 2 decimals).
4. 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.
5. 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%.
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%.

> **Costs hit short-stop strategies hardest**
>
> A strategy with small stops and many trades pays the cost many times, and each time it is a large share of the risk. A backtest that ignores costs can look profitable when the same trades would not be after paying them.

> **Costs in the analysis page**: The Analysis tab of each strategy shows net profit with the commission cost in R, so you can see how much of the result the fees consumed. [Open your strategies](https://quantraider.com/strategy)

## 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.

> Educational content, not financial advice. Trading involves risk of loss.
