A strategy that earns 4 pips per trade on paper can be a losing strategy at the broker, because the paper version never paid to trade. This article itemises the four costs a backtest must charge — spread, commission, swap and slippage — and shows how to set each assumption honestly. By the end, you will be able to audit what your test actually charged, and to stress the result at higher cost levels before believing it.
Key points
- Every round trip is exposed to: the spread, commission where the account type charges it, swap for positions held over rollover — which can be a charge or a credit — and slippage, which live can fall on either side. In a test, the conservative convention is to charge each at its adverse value.
- The spread inside your test is whatever the tester and the tick source used — not what you intended. Audit the settings and the report, not your memory.
- Swap is skippable only if the strategy never holds a position over rollover. For multi-day holds it can exceed the spread as a cost.
- Slippage cannot be known in advance, so charge it as a stated assumption: add a fixed adverse amount per trade and see whether the edge survives.
- Run the cost stress test: re-run at higher cost levels (1.5× and 2× are illustrative probes, not standards). An edge that dies at 1.5× leaves little margin for real-world execution.
Start trading with Exness
You can open an account here:
In plain words
A backtest that does not charge itself properly for trading is grading a strategy nobody can actually trade, so four costs have to be in the test: the spread on every round trip, commission where the account type charges it, swap for any position held through rollover (which can be a charge or a credit), and an allowance for slippage, the gap between the price your rule assumed and the price you would really get. The worked example shows how thin a paper edge can be: a gross expectancy of +3.0 pips per trade becomes +0.6 pips once a spread of 1.2 pips, commission of 0.7 pips and a slippage allowance of 0.5 pips are charged, with swap at zero only because every position is flat before rollover — so a rise of just 0.6 pips in average cost wipes the edge out entirely. The safety check is to re-run the test at 1.5× and then 2× your honest cost assumptions and find the level where the result reaches zero; an edge that dies between 1× and 1.5× is resting on your execution assumptions, not yet on the market. And audit what your tester actually charged — the spread inside the test is whatever the tick data or the settings used, not what you intended.
1. The four charges, itemised
| Cost | When it is charged | Where it hides in a test |
|---|---|---|
| Spread | On every round trip — the difference between the bid you sell at and the ask you buy at | Inside the tick data or the tester’s spread setting; invisible if you never check which |
| Commission | Per lot, per side or per round trip, depending on the account type | A tester field that defaults to zero on many setups |
| Swap | For each rollover a position is held through; direction depends on the position and the symbol | Absent entirely from tests that model no overnight financing |
| Slippage | Whenever execution happens away from the requested price — news, gaps, fast markets; adverse or favourable | Nowhere, unless you add it deliberately: many tester configurations fill at recorded prices with no slippage model at all |
The pattern in the right-hand column is the lesson. The two costs that are easiest to forget — commission at zero by default in many setups, slippage absent unless modelled — are forgotten in the flattering direction. Unexamined cost assumptions are a common source of optimistic bias: the errors that survive are usually the flattering ones.
2. Spread: the assumption inside your tester
What spread did your five-year test actually pay? There are three common answers, and they produce three different strategies:
- Recorded spread — tests built on real ticks carry the spread that was actually quoted at each moment, including the ugly widenings around news and rollovers. This is the honest option, where the data provides it.
- A fixed spread you set — defensible if the figure is a realistic average for the symbol and session you trade, and indefensible if it is the tightest spread the broker advertises.
- The current spread, applied to all of history — a configuration worth checking for in your own setup. Applying today’s spread throughout history can misstate costs in either direction: spreads vary by instrument, session, venue and period, so compare the assumption with relevant historical quotes where they are available.
The audit is simple: find where your tester took its spread from, and write the answer on the test card (Article 1). If you cannot find it, that is the finding.
3. Commission and swap: the scheduled costs
Commission is arithmetic, not judgement: the account type charges a stated amount per lot, and the test must charge the same amount, converted into the same units as your results. If your strategy trades 40 times a month, a per-lot commission that looks trivial per trade is a fixed monthly tax on the system — compare it with the strategy’s gross expectancy per trade, in the same units, before anything else.
Swap is conditional arithmetic. It applies only when a position is open at the rollover moment, and its sign depends on direction and symbol: some positions pay, some receive. Two rules keep it honest:
- Intraday strategies whose rules guarantee flat-by-rollover may exclude swap — and should state that exclusion and the guarantee on the test card.
- Anything held overnight must model swap per night held, including the multi-night charge that many symbols apply on one weekday (commonly Wednesday for forex symbols) to cover the weekend. “Overnight” is shorthand: the charge or credit turns on whether the position is open at the rollover moment, and the rollover time, settlement convention, holidays, instrument and broker can all change the amount or its sign. Check the symbol’s specification for the day and the rates, use historical rates where they are available, and disclose any approximation.
For a swing strategy holding an average of four nights, swap can be a material cost — on some symbols and directions it can rival or exceed the spread line — and it is among the costs most often missing from published backtests.
4. Slippage: charging for what you cannot measure
Slippage is the difference between the price your rule assumed and the price the market gave you; live, it can be adverse or favourable. In many backtest configurations it is effectively zero, because fills occur at recorded prices and no slippage or delay model is applied — check what your own platform actually models. Live, adverse slippage tends to grow exactly when the strategy is most active: breakouts, news releases, session opens — the moments many systems are designed to trade.
Since the true figure is unknowable in advance, the honest treatment is an allowance: a fixed adverse amount charged on every trade (or on entries and exits separately), stated on the test card. Choose it from your own execution records if you have them (the intermediate curriculum covers keeping a slippage log); if you do not, choose a deliberately unfriendly figure — for example, an allowance comparable to a substantial fraction of the typical spread — and treat the choice as part of the test design, open to challenge. An allowance you disclose can be argued with. Slippage assumed to be zero cannot; it has simply been hidden.
5. The cost hurdle, in numbers
The table below is illustrative — invented round numbers showing how thin a paper edge can be once it pays its way.
Example — one average trade (illustrative)
Line Pips Gross expectancy per trade (before costs) +3.0 Spread (round trip) −1.2 Commission, converted to pips at the strategy’s size −0.7 Slippage allowance −0.5 Swap (all positions flat before rollover, in this example) −0.0 Net expectancy per trade +0.6
A strategy reporting “+3 pips per trade” and a strategy reporting “+0.6 pips net” are the same illustrative strategy, reported before and after costs; both figures can be legitimate when clearly labelled, and the net figure is the one that rests on stated assumptions. The second description also tells you the fragility: an increase of 0.6 pips in the average cost per trade — from any combination of wider spreads, worse fills or a costlier account type — erases the stated average expectancy entirely. Which is what the final section tests on purpose.
6. The stress test protocol
- Record the base case: your best honest cost assumptions, each one sourced (recorded spread, stated commission, specification swap, chosen slippage allowance).
- Re-run at 1.5× costs — scale the per-trade cost lines, not the market data — and record net expectancy and drawdown. Where you can, stress the components separately (spread, commission and slippage scale naturally; for swap, stress the debit side rather than inflating credits). The multipliers 1.5× and 2× are illustrative stress levels, chosen to probe fragility — they are not standards, and no conclusion should rest on the exact values.
- Re-run at 2× costs, and note the break-even point: the cost level at which expectancy reaches zero, and how far it sits from your base case.
- Read the pattern: survival under the specified stress assumptions shows how sensitive the result is to those assumptions — it does not cover every execution scenario, and it is not a margin certificate. An edge that dies between 1× and 1.5× is fragile and execution-dependent: treat it as unproven until forward evidence — the demo forward-testing article later in this series, whose historical counterpart is Article 3’s walk-forward — shows costs running at or below the base case. Even then, demo fills and costs may differ from live execution, so demo records check the process and approximate the costs; they do not establish them.
This protocol is the cheapest insurance in the batch. It costs an afternoon of re-runs, and it can expose strategies whose reported profitability depends on omitted or understated modelled costs.
Summary — what to take away
- Assess every applicable line: spread, commission where the account charges it, swap where rollover applies (a charge or a credit), and an execution-price allowance. Unexamined assumptions can bias a result in either direction — including, commonly, the flattering one.
- Audit what the test actually charged — tick source and tester settings — and write it on the test card.
- Convert every cost into the same units as your expectancy and compare them on one page; the net figure is the strategy.
- Stress costs above the base case and find the break-even level. An edge that cannot survive modestly higher costs is an execution assumption, not yet a market effect.
Next reads
Designing a Backtest That Can Actually Falsify Your Idea — where these assumptions are written down before the run.
FAQ
Q: My test uses real ticks. Are costs handled?
A: Partly. Real ticks carry the recorded spread, which covers the spread line honestly where the quote coverage is complete. Commission still depends on the tester being told what your account charges. And real ticks do not by themselves establish realistic execution: check the tester’s fill, delay and slippage settings, and add or disclose an appropriate assumption where needed.
Q: Should I use today’s spread for a five-year test?
A: Only with your eyes open: it applies today’s pricing to every historical year, whether spreads in those years were wider or narrower. A recorded spread, or a fixed assumption set at a realistic — not advertised — level for the period, is the more honest choice.
Q: Does an intraday strategy need swap in the test?
A: Only if a position can be open at the rollover moment. If the rules force positions flat before rollover, exclude swap and write the exclusion, and the rule that guarantees it, on the test card.
Q: How large should the slippage allowance be?
A: Large enough to be arguable. Base it on your own execution records if you have them; if not, start with an unfriendly figure — a substantial fraction of the typical spread per trade — disclose it, and let the stress test at 1.5× and 2× costs show how much the answer depends on it.
Q: Can changing cost assumptions turn a losing strategy into a winning one?
A: In a report, yes — by omitting costs, or by quietly assuming swap credits and favourable slippage. Real outcomes do include credits and favourable fills, and an evidenced credit on a specific line is legitimate to model. What is not legitimate is assuming generosity across the board: each uncertain line needs its own evidence, or its adverse value. The conservative convention is to charge costs at adverse values and treat unevidenced credits as windfall. If adding omitted costs or removing unevidenced credits flips a result’s sign, the reported edge depended on an accounting assumption.
Sources: MetaQuotes, MetaTrader 5 official help — Strategy Tester (tick modelling, spread and commission settings) and symbol specifications (swap rates and triple-swap day). Broker cost figures in the worked example are illustrative, not quotations. Checked: 21 November 2026.
This article is information only and is not investment advice. Forex and CFD trading involves a substantial risk of loss, including the possibility of losing more than you deposited with some account types and jurisdictions. Backtested results are hypothetical, are calculated under stated assumptions, and do not guarantee or predict future performance. Make sure you fully understand how leveraged products work before you consider trading with real money.
Disclosure: Broker Cost Check is reader-supported. If you open an account through a partner link on this page and trade, Exness pays us a share of the revenue from your trading activity under its partner programme. You pay us nothing: our payment comes from Exness, out of that revenue. How we make money: How Broker Cost Check works — method and how we make money

Leave a Reply