Guide · Costs
Spread, commissions and swaps: what trading really costs your robot
A robot's gross profit isn't what you take home. Between spread, commission, slippage and swap, every trade pays a toll. For a scalper, that bill can eat up its entire profit margin.
The four pieces
- Spread: the difference between the buy price and the sell price. It changes with the time of day, liquidity, news.
- Commission: on low-spread accounts, a fixed amount per lot.
- Slippage: the order is filled at another price, sometimes worse than the one requested.
- Swap: the interest for holding a position open overnight. It can add or subtract.
Why they weigh so much on a scalper
A robot that makes 5 pips per trade on average, with a cost of 1.5 pips, hands almost a third to the broker. If its edge is 2 pips, costs can swallow it entirely. The smaller the average profit, the more they matter.
In a strategy that holds for days or weeks
The spread weighs less, but swap becomes more important. A position held open for a month pays, or earns, around thirty nights of interest. In forex, many brokers charge triple on Wednesdays to cover the weekend.
Always compare net figures
A backtest without commissions or swaps looks better than it is. Before comparing two robots, or one with its backtest, add up every cost. Look as well at what share of the profit each cost takes.
A full calculation
A robot opens 400 orders a year of 0.50 lots on EURUSD.
- Average spread of 0.8 pips: $4 each.
- Round-turn commission: another $3.50.
- Half a pip of slippage: $2.50 more.
Total: $10 per entry, $4,000 a year. If its gross profit was $9,000, almost half is lost along the way.
Standard or low-spread account
Standard accounts charge no commission, in exchange for a wider spread. ECN or raw accounts offer tight prices with a fixed charge per lot.
For a system with many short entries, the second option usually works out better. Run the numbers with your real volume before choosing.
How to measure your real cost
- Note the spread at the hour your EA trades, not the advertised minimum.
- Compare the requested price with the executed one on a sample of orders.
- Check the symbol's swap table; it changes with interest rates.
- Divide total costs by gross profit to see what share they take.
How to reduce them
- Avoid low-liquidity hours, such as the daily rollover.
- Put a maximum spread filter on the robot.
- Choose a VPS close to the server to cut slippage.
- Consider whether holding positions on Wednesday night is worth it.
Frequently asked questions
What is the spread in trading?
The difference between a symbol's buy price and its sell price. It's the first cost of every trade.
What is swap in forex trading?
The interest you earn or pay for holding a position open overnight. It depends on the symbol, as well as on the direction of the order.
How do commissions affect a scalper?
A lot. Because a scalper's average profit per entry is small, a cost of 1 or 2 pips can take most of it.