Category
Platform
Difficulty
Intermediate
Used in
Broker selectionEA evaluationBacktesting

Swap

The financing charge or credit applied to a position held past the broker's daily rollover, derived from the interest rate differential between the two currencies plus the broker's own markup.

also: rollover, overnight fee, financing cost, swap rate, carry

Updated · Reviewed

In plain English

Holding a currency pair overnight means borrowing one currency and holding another, so interest changes hands. The broker settles that difference once a day, adds its own margin to it, and the result lands on the position as a credit or a charge.

Why it matters

Swap is the only trading cost that grows with time rather than with activity. A strategy that trades rarely and holds for days can pay more in financing than in spread, and it is the cost most often missing from the backtest that justified it.

  • It accrues per night per lot, so it scales with holding period and position size and is completely independent of how well the trade is going.
  • It is triple-charged on one weekday to cover the weekend, which turns one night's cost into three and puts a step in any equity curve built on multi-day holds.
  • It can be positive. A pair held in the direction of the interest differential pays the account, which is the entire basis of carry strategies.
  • It is broker-specific and revised, so a backtest built on today's table describes today's broker and not the years it claims to cover.
  • It can finish a trade below the stop meant to bound it: one position in the Windrose record ran three and a half months and closed at −$148 against a nominal −$91 stop, and the difference is financing that kept accruing underneath it.

How brokers define it

  • Swap is quoted per lot per night, separately for long and short, and appears on the position in MT5 as its own column rather than inside the profit figure.
  • Market Watch → right-click the symbol → Specification carries the four fields that decide the whole cost: Swap type, Swap long, Swap short and 3-day swap, the last naming which weekday takes the triple charge on that symbol.
  • Toolbox → Trade shows a Swap column on every open position and Toolbox → History shows one on every closed deal, in both cases beside the Profit figure rather than inside it.
  • It is applied at the broker's rollover time, conventionally 23:59 server time, and a position opened and closed within one session never touches it.
  • The base is the interest rate differential between the two currencies; the broker adds a markup, which is why long and short swap on the same pair are usually both negative.
  • One weekday carries a triple charge to settle the weekend — Wednesday for most FX pairs, reflecting spot value dates.
  • Swap-free accounts replace the charge with an administration fee, typically flat per lot after a grace period rather than derived from rates.

What differs between brokers

  • The markup added over the raw differential, which is the part that differs most and is rarely disclosed as a separate figure.
  • Rollover time, which follows the broker's server time zone and shifts with daylight saving in a way that matters to EAs trading near midnight.
  • Which weekday carries the triple charge, especially on metals and indices where it may not be Wednesday.
  • Whether the swap table is quoted in points, in account currency or in base currency units.
  • The terms of any swap-free option: which symbols qualify, whether a grace period applies, and what the replacement fee is per lot per night.

Impact on EA performance

  • A strategy holding positions for days accrues swap on every one of them, and the total is easy to underestimate because it appears in a column most people never sum.
  • The Strategy Tester applies the swap values currently in the symbol specification across the entire historical period, so a multi-year backtest is priced at today's rates throughout.
  • The direction matters as much as the size: an EA that is structurally long a high-yielding currency earns swap, and the same EA reversed pays it.
  • Grid and basket strategies hold many positions for long stretches, so financing is a first-order cost for them and near zero for an intraday strategy.
  • Rollover produces a spread spike as well as a charge, so an EA placing orders in the minutes around it meets both at once.
  • The tester's own Deals tab settles the question for any run: its Swap column shows what the run actually booked, deal by deal. That is how we know Stillwater's 833 deals all recorded exactly zero while 286 of its 416 trades still stayed open across at least one night — a zero worth reading as an unmodelled cost rather than an absent one.
  • Financing is the one cost that makes a backtest irreproducible. Re-running the Lattice Weave build on the same dates returned identical entries, identical exits and the same prices to the last digit, and a total that differed by financing alone, because the broker's stored swap history had been revised in between.

What to confirm before funding

  • The long and short swap for the specific symbol the EA trades, taken from the MT5 symbol specification rather than from marketing material.
  • Which weekday carries the triple charge on that symbol.
  • The broker server's rollover time and how it moves with daylight saving.
  • Whether the swap-free option, if used, charges a flat administration fee and after how many nights.
  • Whether the published backtest for a strategy modelled swap at all, and at which broker's rates.
  • Whether the record states a swap total in currency, or only says that swap was included — the two are very different levels of disclosure.

Typical risks

  • Reading a multi-year backtest as if its financing were historical, when the tester priced every night at the rate in force on the day the test was run.
  • Choosing a swap-free account for a long-hold strategy and paying more, because the flat administration fee exceeds the swap it replaced.
  • Building a strategy on positive carry, then finding the differential has moved or the broker has revised its markup.
  • Placing entries within the rollover window, where the spread spike costs more than the swap being avoided.
  • Reading a zero swap line in a report as a property of the strategy. It is a property of the symbol the test ran on, and the same rules on a live symbol with ordinary rates pay in full.

Example

The Windrose record published here, an AUD/CAD reverter that regularly holds for days to weeks. That record measures its financing rather than assuming it, which makes it the clearest illustration of what swap does to a slow strategy.

Financing across the whole run
−$521
Per-deal swap totalled across 108 trades, already inside the published profit.
Net result of the same run
$1,445.84
The figure that survived after financing was paid.
Maximum balance drawdown
$519.08 (4.51%)
The deepest dip on the equity curve — smaller than the financing bill nobody plots.
Worst single position
−$148 against a −$91 stop
Held three and a half months; the excess is accumulated swap, not slippage.

Nothing here depends on the strategy being right or wrong. It is the rent on holding the positions at all, and on this record the rent outran the drawdown.

Calculation 521 ÷ 1,445.84 ≈ 36% · 148 − 91 = 57 of swap on one position

Result Financing was 36% of the net it left behind, and larger than the record's worst drawdown

How it is used

Swap is read against holding period, not against balance. Compute financing per trade first, then read it twice: as a share of the average win, which is the band below, and against the record's maximum drawdown, which is what tells you whether the cost is larger than the risk everyone already looks at.

Range What it means
Under 2% of the average win Immaterial. Ignore it in strategy selection and keep it in the cost model.
2–10% A real cost worth checking against a second broker's table before committing.
10–25% Financing is now a design constraint. Holding period and broker choice both need to be justified.
Over 25%, or positive carry as the stated edge The strategy is trading the financing rather than the market, and it lives or dies on a rate the broker sets.
  • Take Swap long and Swap short from Market Watch → Specification on the account you will actually run, not from a comparison table, and note the Swap type field beside them — it decides whether the number means points, currency or a percentage.
  • Multiply by realistic nights held, including the triple-charge weekday, before comparing it with the average win.
  • Check the sign in the direction the EA actually trades. A pair can pay in one direction and charge in the other.
  • Confirm whether a published backtest modelled swap, and treat multi-year results as priced at one day's rates.
  • Compare a swap-free account against the standard one on total cost per trade, not on the presence or absence of a swap line.
  • Set the record's stated financing total against its maximum drawdown, not against its net. On the Windrose run the −$521 of swap is the same size as the $519.08 worst drawdown, which is the comparison that makes the cost legible.

Fifteen of the 23 records published here state a swap total in currency; the remaining eight say only that the run booked swap, and leave the per-deal values in the downloadable ledger. Reading which of the two a listing does is the fastest way to see how closely a listing examined its own financing.

Common mistakes

Assuming the backtest priced financing correctly

MT5 applies the swap values from the current symbol specification across the whole test period. A ten-year backtest therefore charges ten years of nights at the rate that happened to be in force the day it was run, which understates or overstates financing depending on where rates were.

Treating swap-free as cheaper

Swap-free accounts replace financing with an administration fee, usually flat per lot per night after a grace period. For a strategy holding a week at a time this is frequently more expensive than the swap it replaced. The comparison is total cost per trade, not the presence of the word free.

Missing the triple-charge night

One weekday settles three nights to cover the weekend. Five rollovers in a trading week therefore bill seven nights, so a position held across whole weeks accrues 40% more financing than a naive nights-held count suggests, and the excess lands on a fixed weekday that shows up as a step in the equity curve.

Treating the stop-loss as the worst case

A stop bounds what the market can take. It does not bound what the calendar can take. One Windrose position held for three and a half months closed at −$148 against a nominal −$91 stop, because financing kept accruing under a position the stop had already priced. On any strategy that can hold for weeks, the real worst case per trade is the stop plus the swap the hold accumulates.

Reading zero swap in a report as good news

Four of the 23 records published here booked exactly zero financing, and in each case that is a property of the tested symbol rather than of the strategy. Stillwater's 833 deals all recorded zero swap because it only ever buys, and the USD/JPY history behind that run carries no long-side swap. Meanwhile 286 of its 416 trades stayed open across at least one night. A live account at ordinary rates pays every one of those nights.

Building an edge out of positive carry

Positive swap is set by an interest differential the broker marks up and revises. A strategy whose profitability depends on it is exposed to a rate decision and a broker policy at the same time, neither of which appears anywhere in its backtest.

In depth

What financing actually cost across the 23 records published here

Across the 23 EAs published hereFigure
Records stating a swap total in currency15
Of those, records whose total is exactly zero4
Records that book swap without totalling it8
Largest financing bill on one record−$938.13
Smallest non-zero bill−$9.37
Combined financing across the eleven non-zero recordsabout −$4,307
Run manifests naming a per-night swap rate1 of 23

The spread between the top and bottom row of that range is the whole point. Ballast made $4,061.59 gross and paid $938.13 of it to financing, publishing $3,123.46 — roughly a quarter of the strategy’s output went to holding the positions. Nautical, on a custom symbol configured with near-zero EUR/JPY swap, paid $9.37 across 1,665 deal rows for holds with a three-day median. Same cost, same platform, two orders of magnitude apart, and neither number is knowable from the strategy logic.

The four zero rows are the trap. Stillwater recorded a swap of exactly zero on every one of its 833 deals, because it only ever buys and the USD/JPY history we tested on carries no long-side swap. Its positions still sat out the nights: 286 of its 416 trades stayed open across at least one, with a median hold near 51 hours and a longest of 44 days. A zero in that column describes the test symbol, not the strategy. Mistake it for a strategy property and you quietly delete a cost a live account will charge on every one of those nights.

The last row is the one that undermines reproducibility. Only one of the 23 manifests records a per-night rate at all; the rest defer to the per-deal values in the trade ledger, and for good reason. Re-running the Lattice Weave build on the same dates returned identical entries, identical exits and the same prices to the last digit. Only the total moved, and it moved by financing alone, because the broker had revised its stored swap history in the interval. Every other cost in a backtest follows from the data; this one follows from when you pressed start.

Frequently asked questions

Does swap appear in an MT5 backtest?
Yes, but it is applied using the swap values currently set in the symbol specification, across the entire historical period. The tester has no history of past swap rates. A multi-year backtest therefore prices every night at one day's rates, so financing in the report is an assumption rather than a record.
Which day is swap charged three times?
Wednesday for most FX pairs, because the value date of a Wednesday position rolls to Monday and settles three days. Metals, indices and CFDs may use a different weekday, and it is stated per symbol in the broker's specification rather than being universal.
Are swap-free accounts cheaper?
Usually not for strategies that hold positions. The swap line is replaced by an administration fee, generally flat per lot per night after a grace period, and for multi-day holds that fee often exceeds the financing it replaced. The comparable figure is total cost per trade on the pair actually traded.
How much does swap actually cost an expert advisor?
It depends almost entirely on holding period, and the spread is wide. Across the 23 EA records published here the eleven that state a non-zero financing total range from −$9.37 to −$938.13 over test windows of roughly seven years each, and four more booked exactly zero. On Ballast, financing took $938.13 out of a $4,061.59 gross and left $3,123.46 — roughly a quarter of everything the strategy made.
Can swap push a trade past its stop-loss?
Yes, and it is not rare on slow strategies. A stop bounds the price excursion, not the calendar. In the Windrose record one position was held for three and a half months and closed at −$148 against a nominal −$91 stop; the extra $57 is financing that accrued underneath it. For anything that can hold for weeks, the worst case per trade is the stop plus the swap the hold accrues.
Does a backtest showing zero swap mean there is no financing cost?
No. It means the symbol the test ran on carries zero swap on the side that traded. Four of the 23 records published here recorded exactly zero financing for that reason, and several of them hold positions for days — Kestrel Hover averages about six days per position with no swap booked at all. A live account at ordinary rates charges every one of those nights, so a zero swap line marks an unmodelled cost rather than an absent one.
Can I avoid swap entirely?
By closing before the broker's rollover. Intraday strategies never pay it, which is one of the structural cost advantages they hold over swing strategies. Anything holding overnight pays it, and the only remaining choices are the broker, the direction and the holding period.

Related articles