EA Not Opening Trades on H4 Chart? Full Troubleshooting Guide

Quick Answer

An EA sitting silent on an H4 chart is almost always a configuration or environment issue, not proof the strategy has stopped working. The H4 timeframe only closes six candles a day, so a rules-based system that waits for a clean setup can legitimately go 24 to 72 hours without a signal. Before you assume something is broken, confirm AutoTrading and Algo Trading are enabled at both the terminal and chart level, check the Experts and Journal tabs for rejection codes, verify the chart symbol matches what the EA expects, and rule out margin problems, broker-side trading restrictions, and VPS connectivity gaps. Work through those checks in order and in the large majority of cases you'll find the cause within about fifteen minutes.

Few things rattle a trader quite like opening MetaTrader after a weekend, seeing an EA still attached to a clean H4 gold chart, and realizing it hasn't opened a single position in days. Has the strategy stopped working? Is the platform broken? Did the broker quietly change something that broke the connection? The reassuring part is that "no trades" on a 4-hour timeframe is one of the most common, and most easily diagnosed, questions in automated trading, and it follows a fairly predictable troubleshooting path. This guide walks through that path in the order experienced traders actually use it, with the log messages, settings, and numeric examples you need to separate a real problem from ordinary, disciplined behavior.

Why H4 Gold EAs Look "Silent" More Often Than Other Timeframes

Before touching any settings, it helps to understand why the H4 timeframe specifically produces more "is this thing broken?" moments than an M15 or M5 chart would. A 4-hour chart forms only six candles per trading day, roughly 30 a week. If a strategy is selective by design, waiting for trend and momentum confirmation to line up before it risks capital, the natural signal frequency on H4 gold stays low. An EA that averages one trade a day might realistically produce zero signals on a quiet Tuesday and two on a volatile Thursday around a major data release. That kind of swing is normal on any timeframe where gold trades in defined sessions rather than reacting to noise around the clock.

Compare that with an M5 scalping EA, which might evaluate conditions every five minutes and surface a configuration bug within the hour. On H4, the same bug can hide for a full trading day before anyone notices the lack of activity. That delay is exactly why a structured checklist matters more here than on faster timeframes. You can't just wait five more minutes and see what happens.

Step 1: Confirm the EA and Algo Trading Are Actually Active

This sounds obvious, but it's the single most common cause of a silent EA, and it's worth ruling out first since it takes under a minute. Two separate switches both need to be "on" before any Expert Advisor can trade.

The terminal-wide AutoTrading toggle

In MT4 and MT5, a global AutoTrading button sits in the toolbar. If it shows red or displays a stop icon, no EA on any chart can send orders, no matter what the chart-level settings say. A terminal restart, a Windows update on a VPS, or even a stray misclick can flip this off without you noticing. Check the MetaTrader 5 terminal documentation for exactly where this control sits in your build, since the interface shifts slightly between versions.

The chart-level "Expert Advisors allowed" state

Every chart the EA is attached to also needs a green smiley-face icon (MT4) or an equivalent active indicator (MT5) in the top-right corner. A gray or frowning face means the EA loaded but isn't permitted to trade on that particular chart, often because "Allow live trading" was left unchecked in the EA's Common tab when it was attached, or because the chart reloaded after a terminal restart without that box being rechecked.

Live trading permission inside the EA's own properties

Right-click the chart, open Expert Advisors properties, and confirm "Allow Algo Trading" (MT5) or "Allow live trading" (MT4) is checked, along with DLL imports if the EA needs them. Golden Viper EA, like most modern EAs, will refuse to place trades and typically logs a clear message when this permission is missing, which is exactly why the next step matters so much. For background on what these fields actually control, MetaTrader's automated trading overview is a useful primer, and our guide to understanding EA settings walks through every field in the Common and Inputs tabs in more detail.

Step 2: Check Symbol, Chart, and Timeframe Match What the EA Expects

An EA built to trade one instrument on one timeframe won't open trades, and shouldn't, if it's attached to the wrong chart. This turns out to be a surprisingly frequent cause of "no trades" reports, especially right after installing or reinstalling a system.

Two mismatches account for most cases.

  • Symbol naming. Brokers label gold differently: XAUUSD, XAUUSD.m, GOLD, XAUUSD_i, or a suffix tied to account type. If the EA's internal logic checks for an exact symbol string and your broker uses a variant, some EAs will simply sit idle rather than throw an error. Confirm the exact symbol name shown in your Market Watch window matches what the EA was built for.
  • Timeframe. An EA designed around H4 confirmation logic reads H4 candle data specifically. Attach it to an H1 or Daily chart by mistake and it's either reading the wrong data or, in stricter builds, refusing to run at all. Check the small timeframe label in the chart's top-left corner against the EA's documented requirement before assuming anything is broken.

If you run multiple EAs, or multiple instances of the same EA across accounts, also check for magic number conflicts. Two EAs sharing a magic number on the same symbol can interfere with each other's order management, and that can quietly suppress new entries even when each one looks correctly configured on its own.

Step 3: Read the Experts and Journal Tabs for Error Codes

This is the step most traders skip, and it's usually the one that resolves the mystery fastest. The Experts tab logs EA-specific messages, and the Journal tab logs platform-wide ones, together covering almost everything relevant: initialization failures, rejected orders, permission blocks, connectivity drops. Open Toolbox at the bottom of the terminal and scroll back to the point where the EA was attached.

The table below lists the messages you're most likely to see when an EA isn't opening trades on a 4-hour gold chart, what they typically mean, and how to fix them.

Log Message or CodeLikely CauseWhat to Check or Do
"AutoTrading disabled by client"Terminal-wide AutoTrading toggle is offClick the AutoTrading button in the toolbar until it shows green/active
"Trade context busy" (MT4)Another EA or manual order is mid-executionWait a few seconds; if persistent, check for conflicting EAs on other charts
Error 130 / "Invalid stops"Stop-loss or take-profit level too close to price for the broker's minimum distanceCheck the broker's minimum stop distance in Market Watch symbol specification
Error 134 / "Not enough money"Free margin insufficient for the calculated lot sizeReduce risk percentage per trade or add funds; see margin discussion below
"Market is closed"EA is running outside the broker's XAUUSD trading sessionConfirm broker's gold trading hours; weekends and rollover gaps are normal
No entry at all, no error loggedStrategy conditions have simply not been met yetSelective EAs can go a full session with no valid H4 setup — this is expected
"Function is not allowed for call" / DLL errorRequired imports or WebRequest permissions not enabledRe-check Expert Advisors properties for allowed imports/URLs

If the Journal shows no errors at all and the EA is simply quiet, take that as a good sign. It usually means the system is doing exactly what it was built to do: waiting for its next qualifying setup, which for a selective, non-martingale system is the normal state most of the time. Our common EA problems and fixes guide covers a broader library of error codes beyond the handful specific to a quiet chart.

Step 4: Rule Out Account, Margin, and Broker-Side Blocks

Even a perfectly configured EA can't open a trade if the account itself can't support one. Work through these account-level checks.

Free margin versus required margin

Say your risk-based lot sizing calculates a position that requires $220 in margin at current leverage, but your account only has $150 in free margin because of an open drawdown on another instrument. The order gets rejected, typically logged as "not enough money." Review your current drawdown and free margin before blaming the strategy logic; understanding how drawdown erodes usable capital makes the relationship easier to see.

Broker trading restrictions

Some brokers restrict certain account types from algorithmic trading, cap the number of open positions, or apply symbol-specific trading holidays around low-liquidity periods such as year-end or select public holidays. Check your broker's account dashboard, or contact support directly, to confirm nothing is restricted at the account level.

Stale quotes or a disconnected feed

If the terminal shows a connected icon but prices haven't updated in the Market Watch window for several minutes, the EA may technically be "running" while receiving no fresh candle data to evaluate. A quick check: compare the last quote timestamp against the actual time. A gap of more than a few minutes during active market hours points to a feed issue rather than a strategy issue.

Step 5: Confirm the Strategy Conditions Simply Haven't Triggered Yet

This step calls for patience more than technical troubleshooting, but once the mechanical checks above come back clean, it's usually the actual explanation. A rules-based XAUUSD system built around trend and momentum confirmation is deliberately selective. It isn't designed to be in the market constantly, and averaging roughly one qualifying setup per day, at most, means plenty of individual sessions will produce nothing at all.

Consider a concrete example. Suppose over a 20-trading-day month the strategy takes 14 trades. That leaves 6 days, nearly a third of the month, with zero entries, simply because price action never presented a valid setup. Check the chart on one of those six quiet days and the EA can look broken when it's behaving exactly as designed. This is also why backtesting your specific configuration matters: running the EA through historical H4 gold data on your own broker's feed via MT4 or MT5 shows you the realistic gap between signals under your exact spread and execution conditions, so a quiet week stops being a surprise.

If you want independent confirmation that a strategy is producing signals elsewhere, a live, third-party-verified track record such as one hosted on Myfxbook or an MQL5 signal lets you compare your own chart's silence against a public feed running a similar style of system. That comparison is often the fastest way to tell "quiet market" apart from "something is actually wrong on my end."

Step 6: Eliminate VPS, Connectivity, and Platform Update Issues

If you run MetaTrader on a VPS, standard practice for any EA meant to run 24/5 without depending on your home internet or a laptop staying open, the VPS itself can end up being the silent culprit.

Check the VPS is actually online and the terminal is running

A VPS reboot triggered by a hosting provider's maintenance window will close MetaTrader unless it's configured to auto-launch on startup. If nobody checked the VPS for several days, the terminal may not be running at all, which obviously means zero trades regardless of how good the strategy is. Our VPS comparison for forex EAs and VPS setup walkthrough both cover auto-start configuration in detail.

Confirm the platform build is current

Occasionally a broker-side server update requires a matching terminal update before order execution behaves normally. Check the MetaTrader 4 help documentation or your terminal's Help menu for the current build number, and update if you're several versions behind.

Ping and latency

Extremely high latency between your VPS and the broker's server can, in rare cases, cause order requests to time out silently. Most reputable VPS providers publish ping times to major broker data centers. If yours is consistently above 100 to 150ms, that's worth investigating separately from the EA's configuration.

Common Configuration Mistakes That Mimic a Broken EA

Beyond the step-by-step checks above, a handful of recurring input-level mistakes account for a large share of "not trading" reports. Use the table below as a quick self-audit.

MistakeSymptomCorrection
Risk percentage set to 0 or a placeholder valueEA runs, logs no errors, never calculates a valid lot sizeSet a deliberate risk percentage per trade under one of the defined risk modes
Trading hours filter left over from a different EA/templateEA only evaluates setups during a narrow window that excludes gold's active sessionReset time-filter inputs to defaults or remove them if not required
Attached to a demo chart while believing it's the live accountTrades appear to open "somewhere" but not on the account being monitoredConfirm the account number in the terminal title bar matches the one you're checking
Multiple chart instances of the same EA/symbolUnpredictable or suppressed entries due to conflicting magic numbersRun one instance per symbol/timeframe combination with a unique magic number
Outdated or corrupted set file after an updateInputs silently reset to defaults that don't match the intended configurationRe-apply your saved .set file and verify each input after any EA update

Building a Repeatable Troubleshooting Routine

Once you've worked through the checks above a couple of times, it helps to formalize them into a short routine you run whenever an EA goes quiet for longer than expected. A practical structure looks like this:

  1. Glance at the AutoTrading icon and the chart smiley face. Five seconds, and it rules out the most common cause instantly.
  2. Scroll the Experts and Journal tabs back to the last EA initialization message.
  3. Confirm symbol and timeframe match the EA's documented requirements.
  4. Check free margin against your configured risk percentage and current open drawdown.
  5. Compare against a public verified track record to see whether the underlying strategy is trading elsewhere under similar conditions.
  6. If everything checks out clean, treat the silence as a normal, selective trading period and revisit the chart at the next session open instead of repeatedly restarting the terminal.

Keeping a simple log of when you last saw a trade, what the Journal showed, and what session gold was in at the time makes pattern recognition much faster the next time something looks off. This is also where sound risk management discipline pays off indirectly. An account with sensible position sizing rarely runs into the margin-driven order rejections that get mistaken for a "broken" EA in the first place.

When "No Trades" Is a Red Flag, Not a Technical Glitch

Most of the time, a quiet H4 chart is nothing more than a quiet market or a small configuration fix. Still, it's worth knowing the difference between a legitimate troubleshooting scenario and warning signs tied to dishonest products, especially if you're evaluating a new EA rather than debugging one you already trust.

Be wary of any provider who answers a "why isn't it trading" question with vague reassurance instead of specific, checkable log analysis, or who can't point you to a real, independently hosted track record. The CFTC's guidance on forex fraud and its advisory on automated trading system scams both flag unverifiable performance claims and evasive support as classic warning signs. The FTC's overview of investment scams makes a similar point: legitimate systems welcome scrutiny of their logs and published results, while fraudulent ones deflect it. When you do check a track record, confirm it carries real third-party verification. Myfxbook's own verification standards explain what separates a connected, audited account from a screenshot that anyone could edit. No honest EA provider will claim guaranteed results or promise the system "always" trades on schedule. Trading involves real uncertainty, and a system that denies that is telling you something important about its credibility, not its performance.

Quick-Reference Table: Wait It Out or Start Digging?

Use the table below the next time you're unsure whether to keep waiting or start investigating.

What You ObserveWait or Investigate?Recommended Next Action
No trades for under 24 hours, no Journal errors, AutoTrading activeWaitNormal for a selective H4 strategy; recheck at next session open
No trades for multiple days, Journal shows repeated rejection codesInvestigate nowWork through Steps 1–4 in this guide, starting with the specific error code
AutoTrading icon is red/offInvestigate nowRe-enable immediately; this alone accounts for a large share of cases
Free margin close to or below required margin for current risk settingInvestigate nowReduce risk percentage or add funds before next signal attempts to fire
VPS unreachable or terminal not runningInvestigate nowRestart VPS, confirm auto-launch is configured, reattach EA
Everything checks out clean but you're still unsureCompareCheck a verified public track record for the same style of strategy during the same period

If you're still setting up your account and want fewer troubleshooting sessions down the road, it's worth reviewing your overall setup end to end. That means connecting your MT4 account to a verification service so you always have independent confirmation of activity, plus double-checking broker execution quality against gold's typical spread. A clean initial setup on a properly configured platform prevents most "why isn't it trading" questions from ever coming up in the first place.

A brief risk note: Trading gold or any leveraged instrument carries real risk, and losses are possible even with a well-configured, disciplined system. Nothing in this guide guarantees future results, and past performance, verified or otherwise, does not predict what any strategy will do next. Only trade with capital you can afford to lose, and treat every troubleshooting session as a chance to also review your position sizing and overall risk exposure, not just your platform settings.

Frequently Asked Questions

Why hasn't my EA opened any trades in over 24 hours on the H4 chart?

Most commonly, the strategy's entry conditions simply haven't been met yet. A 4-hour chart only forms six candles a day, so a selective, rules-based system can realistically go a full session or more without a qualifying setup. Before assuming a fault, confirm AutoTrading is enabled, check the Experts/Journal tabs for errors, and verify the chart symbol and timeframe are correct.

How do I know if AutoTrading is actually enabled?

Look for the AutoTrading button in the platform toolbar. It should be green or highlighted as active, not red or grayed out. Separately, each chart needs its own "Expert Advisors allowed" indicator, typically a green smiley icon in MT4 or an equivalent status in MT5, showing active in the top-right corner of the chart itself.

What does "not enough money" mean in the Journal, and how do I fix it?

It means your account's free margin is below what's required to open the position size the EA calculated based on your risk setting. Reduce the risk percentage per trade, close or manage other open positions contributing to the margin usage, or add funds to the account.

Could the wrong symbol name be the reason my gold EA isn't trading?

Yes. Brokers label gold differently: XAUUSD, XAUUSD.m, GOLD, or with account-type suffixes. If the EA is attached to a chart whose symbol name doesn't exactly match what it expects, it may not evaluate or trade at all, sometimes without an obvious error message.

Is it normal for a gold EA to skip an entire trading day?

Yes, for a selective strategy. A system built to take roughly one qualifying setup per day, at most, will by definition have sessions where no valid entry occurs. That's expected behavior for a disciplined, non-martingale approach, not a sign of malfunction.

My VPS was rebooted. Could that explain the silence?

Absolutely. If the VPS restarted for maintenance and MetaTrader wasn't configured to auto-launch on startup, the terminal simply isn't running, which means the EA isn't evaluating anything at all. Always confirm the terminal is open and connected after any VPS-level restart.

How can I tell if the strategy is actually working versus my setup being broken?

Compare against a live, independently verified track record for a similar style of system, such as one hosted on Myfxbook or published as an MQL5 signal. If the public feed is trading normally during the same period your chart is quiet, the issue is almost certainly local to your setup rather than the strategy itself.

Does backtesting help diagnose a currently silent EA?

Indirectly, yes. Running your exact configuration through historical H4 gold data on your broker's feed shows you the realistic frequency of signals under real spread and execution conditions, so you know what a "normal" quiet period looks like versus something unusual for your setup specifically.

Can two EAs or two instances of the same EA interfere with each other's trading?

Yes, particularly if they share the same magic number on the same symbol. That can cause order management conflicts that suppress or distort new entries even though each instance individually appears correctly configured. Always assign unique magic numbers when running more than one EA or instance.

Should I restart the EA repeatedly if it isn't trading?

Not as a first response. Repeatedly detaching and reattaching the EA can reset internal state and mask the real cause. Work through the Journal logs and configuration checks first, and only restart once you've identified and corrected the underlying issue.

Myfxbook Verified

Automate Your Tutorials Edge

+€1,485Net · 6-mo (verified)
56%Win Rate (51/91)
24/5Automated
Starting at $199 one-time
Get Lifetime Access →
✓ Instant download✓ Full feature access✓ MT4 & MT5 compatible
NB

Nathan Brooks

Nathan Brooks writes about MetaTrader 4/5, Expert Advisors, and automated XAUUSD gold trading for Golden Viper EA.

Myfxbook VerifiedLive since Jan 2026Public track record

Let Golden Viper EA trade gold for you

Automated XAUUSD trading for MT4 & MT5, verified live on Myfxbook. One-time $199, lifetime access.

Get Lifetime Access — $199