Gold EAs
Running a Gold EA Around News: How to Handle NFP, CPI, FOMC and ECB Releases
By Benjamin Lee · Updated · 7 min read
Most gold Expert Advisors are built to trade ordinary price action. A big US data release or a central bank decision is not ordinary. In the minutes around it, spreads widen, quotes jump, stop losses fill far from their price, and an EA that behaved well all week can lose a large share of a small account in one candle. This guide explains why gold reacts so strongly, what happens to your orders at those moments, and the three practical ways to deal with it, from simply pausing the EA to sizing for the shock.
Key takeaways
- Gold reacts to US jobs, inflation and Federal Reserve news, and to European Central Bank decisions through the euro and the dollar.
- In the release minutes the spread can widen sharply and a stop loss can fill well beyond its price.
- The simplest safe approach is a pause window around listed events, not a clever entry trick.
- If you trade through news, use a smaller lot and assume the stop will slip.
- Check each event's time in your own time zone and in broker server time before every high-impact week.
Why gold reacts to economic news
Gold is quoted in US dollars and has no yield of its own, so it is sensitive to anything that changes the dollar or interest rate expectations. Strong US jobs or inflation data can lift rate expectations and the dollar, which often pressures gold. Weak data can do the reverse. Central bank decisions and the tone of press conferences matter as much as the headline number. Geopolitical headlines add another layer that no calendar lists in advance.
The reaction is not predictable by direction. Price can spike one way within seconds, reverse, then settle in the first direction. An EA that tries to guess the move is guessing. An EA that is simply caught in the position is exposed to both the spike and the reversal. That is why most traders treat news as a risk to manage rather than a signal to trade.
The events that matter most for gold
| Event | How often | Typical time (CET) | Why gold cares |
|---|---|---|---|
| US Non-Farm Payrolls (NFP) | First Friday of most months | About 14:30 | Jobs data drives rate and dollar expectations |
| US inflation (CPI) | Monthly | About 14:30 | Inflation shapes Federal Reserve policy |
| Federal Reserve rate decision (FOMC) | About eight times a year | Statement about 20:00, press conference about 20:30 | The policy rate and the tone toward future moves |
| US retail sales, PPI, jobless claims | Monthly or weekly | About 14:30 | Secondary data that can move the dollar |
| ECB rate decision | About every six weeks | Decision about 14:15, press conference about 14:45 | Moves the euro, which moves the dollar and gold |
| Euro-area inflation flash estimates | Monthly | Late morning | Influences ECB expectations |
What happens to your orders at release time
- Spread widens. A normal gold spread of a few tenths of a dollar can multiply for seconds. An EA with no spread filter opens trades at the worst possible price.
- Slippage. Market orders and stop losses fill at the next available price, which can be far from the one you set. A stop placed 5 dollars away can fill 10 or more dollars away in a fast move.
- Requotes and rejections. Brokers may reject orders or return an error during extreme volatility. Your EA may then fail to close or open as planned. See filling modes and trade return codes.
- Gaps in the data. Quotes can skip levels, so a pending order can trigger on a jump.
- Both sides stopped. A spike up then down can hit the stop on a long and a short in the same minute.
A worked example in euros. An EA holds 0.05 lots of gold, which is 5 ounces. Its stop is 5 dollars away, so a normal loss is about 25 dollars, roughly 22 euros at 1.15. During a release the stop fills 15 dollars from the entry. The loss is 75 dollars, about 65 euros, three times the plan. On a 1,000 euro account that is 6.5 percent from one trade. The gold lot size calculator shows the sum for your numbers.
Three ways to run a gold EA around news
| Approach | What you do | Pros | Cons |
|---|---|---|---|
| Pause around events | Stop new trades, and close or protect open ones, in a window before and after each release | Simple, protects against the worst slippage | Misses any profit in the move, and needs a correct calendar |
| Trade through with smaller risk | Keep the EA on but cut the lot size and widen stops for news days | Keeps the strategy running | Stops can still slip, so the real loss can exceed the plan |
| Trade the news deliberately | Use an EA built for news breakouts with pending orders | Can profit from big moves | Very high slippage risk and broker restrictions; not for beginners |
For most traders the first approach is the right one. Many gold EAs include a news filter that pauses trading for a number of minutes before and after listed events. Check how yours works, which events it covers and whether it needs a web address allowed in the terminal. Our XAUUSD settings guide lists the related inputs, and the MT5 economic calendar guide explains the calendar side.
Sizing the pause window
A common choice is to stop new entries some minutes before a major release and wait some minutes after it. Longer windows protect more but skip more trading. There is no perfect value. Start with a window that covers the release and the first reaction, and review it against your own fills. Make it longer for the biggest events, such as the Federal Reserve decision, and shorter for secondary data.
Step 1: List the week's events on Sunday
Write the high-impact releases with their time in your time zone and in broker server time.
Step 2: Set the window for each
For example, stop new trades a set number of minutes before and resume after the post-release spread has returned to normal.
Step 3: Decide what happens to open trades
Close them, reduce them, or leave them with their stops. Decide before the event, not during it.
Step 4: Check the spread before resuming
Let the EA resume only when the spread is back near its usual range.
Step 5: Review the fills afterwards
Compare the actual fills with the planned ones. If slippage was larger than expected, widen the window or cut the size.
What a backtest cannot tell you about news
A backtest on real ticks includes the price jumps of past news, but the tester cannot reproduce the exact slippage and rejections you would get live. An EA's calendar-based news filter may also not work in the tester, so a backtest can show a result without the filter that you would use live. If the filter matters, test with a time-based pause for the same events and compare. Our backtest versus live guide explains the gap.
Sources and further reading
- MQL5 Reference: Trade Server Return CodesWhat the codes returned for a refused trade request mean, including 10027.
- MetaTrader 5 Help: Strategy TestingThe Strategy Tester: testing modes, settings and forward testing.
- MetaTrader 5 Help: Real and Generated TicksThe difference between ticks recorded from the broker and ticks the tester generates.
Frequently asked questions
Should I run my gold EA during NFP?
Most traders pause the EA around NFP, CPI and central bank decisions, because spread, slippage and reversals are at their worst. If you run through it, use a smaller lot and assume the stop will fill beyond its price.
How long should a news pause last?
There is no fixed answer. Cover the release and the first reaction, and resume when the spread is back to normal. Use longer windows for the biggest events and review them against your own fills.
Does a stop loss protect me during news?
It limits the loss in theory, but in a fast move the order fills at the next available price, which can be well beyond the stop. Size the trade for that possibility.
Why did my gold EA lose a lot on one candle?
Usually a release or headline moved price quickly, the spread widened, and the stop filled far from its price. Check the time against the economic calendar and the EA's journal.
Do ECB meetings affect gold?
They can, mainly through the euro and the dollar. Moves are often smaller than around US releases, but still large enough to matter for a leveraged gold position.
Expert Advisors in these styles
Apply the checks above to any of these before you buy: read the manual, run your own backtest, and start on demo.
Keep reading
- Gold EAsBest Gold EA for MT5: How to Choose One (Checklist)How to pick a gold (XAUUSD) Expert Advisor for MT5: strategy type, spread tolerance, drawdown, proof to ask for, and a 12-point checklist before you pay.
- Gold EAsXAUUSD EA Settings: Lot Size, Stop Loss, Spread, HoursWhat each XAUUSD Expert Advisor input does and how to size it: lot size, stop loss, spread filter, slippage, trading hours and magic number, with euro examples.
- Risk managementMT5 Economic Calendar and EA News Filters ExplainedHow the MT5 economic calendar and Expert Advisor news filters work: impact levels, pause windows, WebRequest permissions, tester limits and a weekly routine.
- Pillar guideMT5 Expert Advisors: The Complete Guide for BeginnersEverything about MetaTrader 5 Expert Advisors in one place: how they work, strategy types, risk, backtesting, buying safely, gold, EURUSD, prop firms and Europe.


