Your backtest returned 47%. Your live account gained 23%. Swap points did that.
The gap between backtest and live results isn't slippage or spread. It's financing costs that every backtest engine ignores by default. Every 16 hours, your broker charges you to hold a position. Over a year, that's 547 overnight charges per position. You never see them in backtest data.
Most traders don't realize this cost exists until they compare their live P&L to their backtest report. Then they wonder why the math doesn't match. It matches. They just forgot to account for the cost of borrowing.
What Swap Points Are (And Why Brokers Charge Them)
When you hold a position overnight, your broker is lending you money. In forex, you're borrowing one currency to hold another. In stocks, you're borrowing shares. In indices, you're borrowing cash. Swap points are the interest charge for that loan.
Your broker quotes this as "swap points" (usually 1-10 points per day) or "overnight fee." The amount depends on three things:
- Interest rate differential — The gap between two currency rates (forex) or the repo rate (stocks/indices)
- Position size — Larger positions = larger financing charge
- Hold duration — Overnight holds are charged once per 16 hours. Longer holds = more total charges
This is not optional. You cannot avoid it. Every broker charges it. The only question is how much.
The Cost in Real Numbers
Let's say you trade EURUSD with a typical swap rate of -2.5 points for long positions (meaning you pay, not receive).
1 standard lot (100,000 units) × 2.5 points = 2,500 points per day = $25 overnight charge (assuming 0.0001 = $1).
Hold that position 250 trading days per year: $25 × 250 = $6,250 in annual swap costs on a single lot.
Now scale it. Most active traders hold 3-5 positions simultaneously during their trading day. If 2 of those roll to overnight, you're paying $50-$100 per night, every night.
$50/night × 250 trading days = $12,500 annually. That's not including weekends (when forex swaps triple for Monday opening) or positions held through major events.
If your annual backtest profit was $50,000, swap costs just cut it to $37,500. That's a 25% loss before taxes, before commissions, before adjustments.
Now check your live account. It probably shows exactly that number. That's not a coincidence.
Why Your Backtest Report Lies By Omission
Every major backtest engine (MT4, MT5, TradingView) allows you to include swap costs. Most traders don't enable the feature.
Why? Because when swap costs are included, 70% of backtests flip from profitable to breakeven or losers. No one wants to see that.
So traders run backtests without swap costs, see a 50% annual return, feel confident, deploy live, and watch that return collapse to 30%. Then they blame slippage, broker liquidity, or market regime change.
It was always the swap costs. The backtest showed the fantasy version. Live trading shows the reality.
Here's the thing: backtesting without swap costs is like building a car without counting the fuel cost. The car moves, but it moves based on a lie.
Not All Brokers Charge The Same
This is where broker selection becomes a hidden edge. Swap costs vary dramatically between brokers.
Example: EURUSD long positions on three brokers:
- Broker A — -2.5 points/day (typical market rate)
- Broker B — -1.2 points/day (rebate-focused broker)
- Broker C — -0.3 points/day (institutional ECN pricing)
1 standard lot, 250 trading days:
- Broker A: $6,250 annual cost
- Broker B: $3,000 annual cost
- Broker C: $750 annual cost
Same strategy. Same market. Different brokers = $5,500 gap in annual P&L.
Most traders never research swap rates. They pick based on "low spreads" or "fast execution," ignoring the financing cost that compounds every single night. Check your broker's swap schedule (usually under "Contract Specifications" or "Trading Conditions") before comparing brokers—OANDA publishes detailed swap comparisons across major pairs if you want a reference point.
Crypto Exchange Bots Face The Same Problem
Swap costs aren't just forex. If you're trading spot+futures arbitrage, margin trading, or lending protocols on Binance, Bybit, or OKX, you're paying funding rates.
Funding rates work identically: if more traders are long, longs pay shorts. Rates can spike to 0.5% per day (18% annualized) during euphoria, then flip negative during crashes.
A bot backtested without accounting for funding rate swings will show 5x worse performance live. Just like forex bots ignore swap costs.
The good news: funding rates are predictable and can be modeled. Custom crypto exchange bots built for Binance, Bybit, and OKX account for funding rates automatically during backtest and live trading.
How To Account For Swap Costs (Before You Build)
If you're building or improving a strategy, apply this framework:
- Calculate your average hold time — How long do positions typically stay open? 4 hours? 24 hours? A week?
- Check your broker's swap schedule — Pull the published swap rates for each pair you trade.
- Multiply your position size by swap cost by hold days — This is the annual bleed.
- Subtract that from your backtest profit — This is your realistic live target.
- Test which brokers offer better swap rates — Some brokers rebate 50%+ of market swap costs. ECN brokers offer institutional rates. The right broker can cut your financing cost in half.
If your strategy can't survive the realistic financing cost, it was never actually profitable. It was profitable in the backtest fantasy.
For a deeper look at why financing costs compound, Investopedia's forex education section breaks down the mechanics of overnight financing and position holding costs.
Expert Advisors That Account For Swap Costs
Here's what separates amateur EAs from professional ones: amateur EAs assume zero overnight costs in backtest. Professional EAs include broker swap rates in the modeling.
When Alorny builds custom MT5 Expert Advisors, every backtest includes real swap costs pulled from your specific broker's current rates. The backtest report shows what you'll actually earn, not the fantasy version.
This means:
- The EA automatically avoids holding positions overnight if the swap cost would wipe out the expected profit
- Backtests show realistic returns (15-25% annually instead of 60%)
- Live performance matches backtest results because the model was never dishonest to begin with
- You can compare brokers and pick the one that fits your strategy's financing reality
Custom MT5 EAs start from $100 for simple strategies up to $500+ for advanced swap-aware systems. We include a full backtest report on real data with real broker swap rates. Most EAs built on Fiverr skip this entirely.
The Cost Of Ignoring This
Let's project 5 years. You're trading a strategy that shows $50K annual profit in backtest without swap costs.
Year 1 (live): $32K (after $18K swap bleed). You're discouraged but keep going.
Year 2: $32K again (swap costs don't improve). You wonder what's wrong with the market.
Year 3-5: Same pattern. You've earned $160K instead of $250K. That $90K difference is gone forever.
Now imagine building the strategy correctly from day one. Include swap costs in backtest. Pick a broker with better rates. Adjust position size to survive the bleed. Year 1 shows $35K (realistic, and it matches live results). You keep running the strategy with confidence because the forecast matches reality.
Year 5 total: $175K instead of $160K. You also have the confidence to scale.
The difference between honest backtesting and fantasy backtesting: $15K over 5 years, plus the psychological edge of knowing your model is actually truthful.
Key Takeaways
- Swap points are a 15-30% annual cost on most strategies; most traders never account for them in backtest
- The gap between backtest returns and live returns is usually 100% swap cost-driven, not market-driven
- Brokers vary wildly in swap rates—the right broker can cut your annual financing cost by 50-70%
- Professional EAs include swap costs in backtest modeling; amateur EAs ignore them and surprise you live
- Honest backtesting (with swap costs) shows realistic returns; this confidence compounds better than fantasy profits that never materialize
The traders winning consistently aren't the ones with the best strategies. They're the ones who backtest against reality, not against a fantasy version where money is free to borrow.