Home > Blog > Managing Swap Points in Your EA — What You Need to Know for GOLD and USDJPY

SwapXAUUSDUSDJPYEACost Management

Managing Swap Points in Your EA — What You Need to Know for GOLD and USDJPY

Published: 2026-05-18Read time: about 3 min
This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results

Managing Swap Points in Your EA — What You Need to Know for GOLD and USDJPY

Swap points rarely matter for scalping or intraday EAs, but for swing strategies running on H4 or D1 timeframes, they can significantly impact your bottom line the longer you hold a position. GOLD (XAUUSD) in particular can carry a heavy negative swap on short positions, so it's important to check this before going live.

What Is a Swap Point?

A swap point is an interest adjustment cost that accrues when you hold a currency or CFD position overnight.

In FX, swaps reflect the interest rate differential between two currencies. For CFDs such as GOLD, the swap represents the cost of carrying the position.

When it occurs: At 00:00 server time in MT5 (the daily rollover)
Wednesday to Thursday: 3 days' worth of swap is charged at once (covering the weekend)
Calculation method varies by broker

Swap Characteristics of XAUUSD

Gold is treated as a commodity CFD, and the swap reflects the cost for financial institutions to hold the underlying inventory.

Typical XAUUSD Swap Direction

Position DirectionSwapReason
Long (Buy)Small negative to positiveDepends on interest rate environment
Short (Sell)Large negativeInventory carrying cost

In the high-interest-rate environment of 2024–2026, short position swaps have been especially punishing.

Example Figures (XMTrading, as of May 2026)

Lot SizeLong Swap (per day)Short Swap (per day)
0.01approx. −$0.05approx. −$0.30
0.10approx. −$0.50approx. −$3.00
1.00approx. −$5.00approx. −$30.00

Holding a 1.0 lot short position for one week means paying roughly $210 in swap costs alone.


Swap Characteristics of USDJPY

For Dollar-Yen, the swap directly mirrors the interest rate differential between the US and Japan.

Typical USDJPY Swap Direction (as of May 2026)

PositionSwapContext
Long (Buy)PositiveUSD rate > JPY rate
Short (Sell)NegativeReverse interest rate differential cost

As the US–Japan rate gap has been narrowing, the benefit of a positive buy swap is smaller than it once was. That said, USDJPY swap costs remain relatively modest compared to GOLD short swaps.


How EA Strategy Timeframes Relate to Swap Exposure

H1 EA (e.g., GOLD EMA ATR EA)

Average holding time: a few hours to 1–2 days. Swap impact is relatively minor, though you should watch for GOLD short positions that straddle the weekly rollover.

H4 EA (e.g., USDJPY Trend Pullback EA)

Average holding time: 2–7 days. This timeframe is where swap starts to show up meaningfully in your results. A USDJPY long position may actually accrue positive swap here.

D1 EA (e.g., GOLD Breakout EA)

Average holding time: several days to two weeks. Swap costs should be baked into your TP design.

Example: TP = ATR × 4.0
If a 1-week hold costs $30 in swap (0.1 lot):
Effective profit = profit at TP hit − $30

How to Factor Swap Costs into Backtesting

MT5 Strategy Tester includes swap calculations by default.

Important caveats:

  • The swap value used in Strategy Tester is fixed for the entire backtest period
  • Real-world swap rates can be changed by brokers on a daily basis
  • During periods of high inflation or rate volatility, swap rates can shift significantly

To minimize the gap between backtest and live results: Run a "stress test" using your broker's current actual swap rates (set swap higher than the default in your test configuration).


Leveraging Swap-Free Accounts

If swap costs are a concern for GOLD swing trading, a swap-free (Islamic) account is a viable option.

Swap-Free Support at Major Brokers

BrokerSwap-FreeConditions
ExnessExcellentNo application required (some plans apply automatically)
XMTradingAvailableApplication required (religious grounds)

Important Notes on Swap-Free Accounts

Swap-free accounts eliminate swap charges, but some brokers replace them with an admin fee that is charged daily in a similar way. Make sure to compare the actual cost before switching — the admin fee may exceed the swap you were trying to avoid.


Summary

  • XAUUSD short swap tends to be a significant cost, especially in high-rate environments
  • USDJPY long swap can be positive depending on the interest rate differential
  • The longer the timeframe (H4 / D1), the greater the swap impact
  • Swap-free accounts pair well with GOLD swing strategies
  • MT5 backtests include swap, so always verify the swap value being used in your test settings

Swap is easy to overlook, but it accumulates over time and can meaningfully drag on long-term performance. If your strategy relies on short GOLD positions, consider a swap-free account.


FAQ

Q: How do I check the XAUUSD swap rate on XMTrading?

In MT5: right-click XAUUSD → "Specification" → check the "Swap (Long)" and "Swap (Short)" fields. You can also find swap rates on XMTrading's website under "Trading Conditions." Since rates can change daily, we recommend checking roughly once a month.

Q: Does swap affect the PF shown in my backtest?

Yes. MT5 backtests calculate profit and loss including swap. The "Gross Profit" figure in your backtest results already has swap costs deducted. If swap rates shift significantly in live trading, it can cause your live performance to deviate from the backtest.

Q: What time does swap get charged in my local timezone?

(Note: applies specifically to Japan) Swap is charged at 00:00 server time (as shown in MT5). XMTrading uses GMT+2 (GMT+3 during summer time), which corresponds to approximately 6:00 AM Japan time during summer and 7:00 AM during winter.

Q: Is it a valid strategy to intentionally hold a position open to collect positive swap?

Theoretically possible, but manually overriding your EA's logic is not recommended. Pushing your TP further out to capture swap income throws off the balance between expected gain and price risk. Let the EA run as designed.


5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.

Comments & questions