What Causes XAUUSD Price Gaps
— and How to Protect Your EA
A gap happens when price jumps from one level to another with no trades in between. Your stop loss is already behind you. Your EA has no time to react. Here is what causes them — and the exact settings that reduce your exposure.
Price closed Friday at 2348. Your SL was at 2335. Gap opened Sunday at 2318 — 30 pips below your stop loss. Your order filled at 2318, not 2335.
The 4 Types of Price Gaps on XAUUSD
Not all gaps are equal. Each type has a different cause, frequency, and level of danger for an EA.
Gold closes Friday ~22:00 UTC and reopens Sunday ~22:00 UTC. Two days of geopolitical news, central bank statements, and macro data accumulate with zero market access. When Sydney opens, price jumps to reflect the new reality.
High-impact events like NFP, FOMC decisions, CPI prints, and geopolitical shocks can move XAUUSD hundreds of pips in milliseconds. Liquidity vanishes in the seconds before and after the release, creating a vacuum that price jumps through.
During the rollover window (22:00–00:00 UTC) and deep Asian session, market depth is thin. A single large order can move price 5–15 pips with no fills in between. Less dramatic but consistent.
War escalations, surprise sanctions, central bank emergency announcements, and sovereign crises. Gold is the world's safe-haven — it reacts faster and harder to geopolitical shocks than almost any other instrument.
The Weekend Gap — The Most Predictable Danger
The weekend gap is the only type of gap that is completely predictable in timing. You know it happens every single week. There is no excuse for holding an open scalping trade over the weekend.
News Events That Cause the Biggest Gaps
These are the scheduled events that drain liquidity from XAUUSD in the minutes before and after release. The spread widens to 10–30 pips, then price jumps to the new level. Any open trade in this window gets filled at the worst possible price.
Use Forex Factory Calendar every Sunday to identify the week's high-impact events.
How a Gap Breaks Your EA Trade
Understanding exactly what happens mechanically helps you appreciate why the protection settings exist.
6 Ways to Protect Your EA from Price Gaps
No method eliminates gap risk entirely. But these six settings and practices combined reduce your exposure to a manageable level.
Configure your EA's CloseOnFriday setting or set EndHour to 20:00 UTC on Fridays. Any open trade going into the weekend is exposed to the Sunday gap — no stop loss can protect you if price jumps 80 pips past it.
Never run an EA without a stop loss. Even though a gap can skip your SL, a hard SL limits damage compared to no SL at all. Most brokers will fill at the next available price — with an SL this is the gap open price, not worse.
Add a news filter or manually disable AutoTrading 15 minutes before NFP, FOMC, and CPI. These three events account for the majority of extreme gap events on XAUUSD. Check the economic calendar every Sunday.
Set your EA's MaxSpread input to 3–5 pips. When spread widens (a signal that liquidity is thin), the EA will refuse to open new trades. This catches pre-news gaps and rollover windows automatically.
In the EU/UK, brokers are required by law to offer negative balance protection. This means a gap cannot take your account below zero. Outside these regions, confirm your broker offers it explicitly.
If your PC is off when a gap occurs, your EA cannot manage open trades. A VPS ensures the EA is always live and can react — closing positions, moving stops, and blocking new entries during adverse conditions.
Recommended Gap Protection Settings Per EA
Each Pro-Scalper EA has these inputs in its settings panel. Here are the recommended gap protection configurations:
CloseOnFridaytrueMaxSpread3.0NewsFiltertrueEndHour (Fri)20CloseOnFridaytrueMaxSpread4.0NewsFiltertrueEndHour (Fri)20CloseOnFridaymanualMaxSpread5.0NewsFiltertrueEndHour (Fri)21CloseOnFridaytrueMaxSpread3.5NewsFiltertrueEndHour (Fri)20Weekly Gap Protection Checklist
Frequently Asked Questions
Can a gap skip my stop loss entirely?
Yes. If price gaps from 2350.00 to 2320.00 and your stop loss is at 2340.00, your order fills at 2320.00 — the next available price. This is called slippage on a gap. It is one of the few ways a stop loss fails to limit losses to the exact level set.
How big is the average XAUUSD weekend gap?
The average weekend gap on XAUUSD is 10–30 pips under normal market conditions. During periods of high geopolitical tension or surprise central bank moves over the weekend, gaps of 80–150 pips are not uncommon. About 60–70% of weekly gaps close (fill) within the first 24 hours of trading.
Should I always close trades on Friday?
For most EA strategies — especially scalping — yes. The risk of holding over the weekend is not priced into the typical scalper's reward. The exception is if your EA uses a swing approach with large TP targets where the swap cost and gap risk are part of the expected value calculation.
Does a news filter completely protect against news gaps?
No filter is perfect. A news filter blocks new trade entries around scheduled events, but it cannot predict surprise announcements (emergency Fed statements, geopolitical shocks). It is a risk reduction tool, not a guarantee.
What broker setting helps most with gap protection?
Negative balance protection is the most important safety net. For execution quality, an ECN broker with deep liquidity pools will fill gap orders closer to the gap-open price than a market maker, reducing the damage when a gap occurs.
Do gaps happen on demo accounts the same way as live?
Weekend gaps yes — most demo accounts use the same feed as live. News gaps are typically replicated too, but execution quality (slippage on fills) may differ. This is why testing on a live account with small lot size is the final validation step.
Trade with gap protection built in
Every Pro-Scalper EA includes CloseOnFriday, MaxSpread filter, and NewsFilter inputs so you can configure gap protection from day one.
Get Your EA →