Common EA Problems and Fixes After Your EA Starts Trading

Quick Answer

Once an EA is running, the common EA problems change: lot sizes that differ from what you expected (usually a risk or auto-lot input, or the broker's volume step), more trades than planned (a second copy of the EA on another chart or terminal), trades closing early (a manual close, another EA or a margin stop-out on the same account), slippage (latency and fast markets), and silent disconnects or a broker server change that leaves the terminal logged out. The symptom table below maps each one to the check and the fix. If the EA has never opened a trade at all, that is a different problem with its own checklist, linked in Problem 1.

Nothing is more frustrating than setting up an Expert Advisor only to find it isn't trading. These same EA issues come up again and again, and it's almost always one of a handful of culprits. The good news: most common EA problems have a quick fix. This guide covers the most frequent issues, ordered from most common to least, with exact steps for each one -- plus the less obvious problems that tend to show up weeks or months into running an EA, like disconnections and backtest-versus-live mismatches.

Most of what follows applies to any Expert Advisor on MT4 or MT5, not just a specific product. Automated trading removes emotional decision-making from execution, which is exactly why platforms like MetaTrader's MQL5 documentation exist -- the terminal itself generates specific, loggable error codes for almost every failure mode, and knowing how to read them saves a lot of guesswork.

Problems After Your EA Starts Trading: Symptom Table

These problems appear only after an EA has traded for a while, so a setup checklist does not catch them. Find your symptom, run the check, apply the fix.

SymptomLikely causeCheckFix
Lot size larger or smaller than expectedAn auto-lot or risk % input scaling with the balance, or the broker's volume stepThe EA's Inputs tab; Volume step in the SpecificationSet the input you intended
Twice as many trades as plannedThe same EA on two charts, or on your PC and a VPS at onceCharts showing the EA's name; a second logged-in terminalRemove the extra copy
Trades closing earlier than the EA's rulesA manual close, another EA on the symbol, or a margin stop-outThe History tab and Journal at the close timeSeparate EAs by magic number; keep free margin
Fills worse than the requested priceLatency to the broker, or a fast market around newsPing in the status bar; requested vs filled price in the JournalUse a VPS close to the broker's server
Trading stopped after days of runningA disconnect, a VPS restart, or Algo Trading off after a restartThe status bar and the JournalReopen, log in, confirm Algo Trading and the EA icon
"Invalid account" after a broker noticeThe account moved to a new server nameFile > Login to Trade AccountLog in on the new server, then re-check the EA

Golden Viper EA's only input is the license key, so its lot sizes are fixed and built in, and several open grid levels at once are by design, not duplicates. If a broker change gives you a new account number, its key stays locked to the original MT5 account; support moves it via @viprasol_help on Telegram.

Problem 1: EA Not Trading

This is the most common issue by far. The EA is loaded on the chart, but it never opens a trade. The complete step-by-step checklist for an MT5 EA not taking trades covers it in full; here is the short version:

Checklist: EA Not Trading

CheckHow to FixLocation
AutoTrading enabled?Click the AutoTrading button in the toolbar (should be green)MT4 toolbar
Smiley face showing?If sad face, enable "Allow live trading" in EA propertiesRight-click chart > Expert Advisors
Correct symbol?Verify the chart symbol matches what the EA expectsChart title bar
Correct timeframe?Switch to the timeframe the EA is designed forMT4 timeframe buttons
Sufficient margin?Check if your account balance supports the EA's lot sizeTerminal > Trade tab
Market open?Gold trades Sunday 23:00 - Friday 22:00 GMTMarket Watch window
Check Experts tabLook for error messages in the Experts logTerminal > Experts tab

Go through these in order. The first three items clear up most "EA not trading" cases.

Reading the Experts Log Like a Pro

The Experts tab (Terminal > Experts) is the single most useful diagnostic tool MT4 and MT5 give you, and most traders never open it until something breaks. Most EAs log what they attempt, and why it fails, there in plain text (Golden Viper EA writes only license and setup alerts there; broker refusals show in the Journal tab). Learning to read a handful of recurring messages will resolve most "why isn't this working" questions faster than any forum post:

Log MessageWhat It MeansWhat To Do
"Not enough money"Your free margin can't support the requested lot sizeReduce lot size or deposit more funds
"Invalid stops"Stop loss or take profit is closer than the broker's minimum stop distanceWiden the stop distance in EA inputs or ask your broker for the minimum
"Trade context busy"Another order request is still being processedWait a few seconds; avoid running conflicting EAs on the same account
"Market closed"You're trying to trade outside the instrument's session hoursCheck the symbol's trading schedule in Market Watch > Specification
"Off quotes" / "Requote"Price moved between the request and executionEnable slippage tolerance in EA inputs, or switch to an ECN-style broker
"Invalid volume"Lot size falls outside the broker's min/max/step for the symbolCheck Market Watch > Specification for the allowed lot range

These correspond to standard MetaTrader trade server return codes -- the full reference lives in the MQL5 documentation if you want the exhaustive list, our MT5 error message table maps each Journal line to its fix, but the six above cover the vast majority of real-world cases.

Problem 2: Sad Face Instead of Smiley

A sad face next to the EA name means it's loaded but blocked from trading. It's a permissions problem, every time:

Fix for Sad Face

  • Step 1: Go to Tools > Options > Expert Advisors tab
  • Step 2: Check "Allow automated trading"
  • Step 3: Check "Allow DLL imports" if the EA requires it
  • Step 4: Click OK
  • Step 5: Right-click the chart, go to Expert Advisors > Properties
  • Step 6: On the Common tab, check "Allow live trading"
  • Step 7: Click OK -- the face should change to a smiley

If the face is still sad after all that, pull the EA off the chart and re-attach it. MT4 sometimes needs a fresh attachment before it picks up the permission changes.

MT5 handles this slightly differently: instead of a smiley/sad face icon, it shows a status indicator in the top-right corner of the chart, and the "Algo Trading" button lives in the main toolbar rather than being called AutoTrading. The underlying settings are the same -- Tools > Options > Expert Advisors still governs whether automated trading is allowed globally, and the per-chart Properties > Common tab still needs "Allow algo trading" checked. If you're moving a setup from MT4 to MT5, expect to click through this permission screen again even if you already enabled it on the other platform; the two terminals don't share settings.

Problem 3: Wrong Lot Sizes

The EA is trading, just not with the lot sizes you expected. It's usually one of these:

  • Auto lot sizing: the EA scales lot size off your account balance, so a balance change shifts every trade size with it
  • Risk percentage set too high: even a 2% risk input can produce large lots once the account balance grows, so check the EA's risk parameter
  • Fixed lot setting: the EA may be locked to a flat lot size that no longer matches what you intended
  • Broker lot restrictions: your broker's minimum, maximum, or step size for lots may differ from what the EA assumes

To fix it, open the EA's properties (right-click chart > Expert Advisors > Properties > Inputs tab) and adjust the lot size or risk percentage. For more on getting this right, see our position sizing calculator.

How Auto Lot Sizing Actually Works

Most percentage-risk EAs use a version of the same underlying formula: they take your account balance (or equity), multiply it by the risk percentage you set, then divide by the stop-loss distance in points to arrive at a lot size. So a $2,000 account risking 1% per trade with a 200-point stop loss produces a much smaller lot than the same account risking 3% with a 50-point stop. This is standard position-sizing math used across algorithmic and discretionary trading alike -- Investopedia's guide to margin covers how that lot size then translates into the margin your broker holds against the trade. If lot sizes look wrong, the input worth checking first is almost always the risk percentage or fixed-lot field, not a bug in the EA itself.

Try Golden Viper EA free for 3 days A gold grid EA for MT5 cent accounts, with a live account you can check on Myfxbook. Start with a free trial key, then choose 1 month for $49, 1 year for $199 or lifetime for $299.
Start Free 3-Day Trial →

Problem 4: License and Authentication Errors

Most commercial EAs verify licenses against your account number, MT4 installation, or hardware ID. Here's what the common error messages mean and how to fix them:

Error MessageCauseFix
"License invalid"Account not registeredContact vendor with your MT4 account number
"Wrong account"EA licensed for different accountUse the correct account or request re-licensing
"License expired"Subscription endedRenew your subscription with the vendor
"Hardware mismatch"Different computer/VPSRequest hardware ID reset from vendor
"DLL error"DLL imports not enabledTools > Options > Expert Advisors > Allow DLL imports

Licensing exists to protect legitimate vendors from having their EAs copied and resold, so a certain amount of friction here is normal and not a red flag by itself. What is a red flag: a "vendor" who can't explain why an account or hardware ID is tied to a license, who demands payment through untraceable methods to "unlock" a purchase you already made, or who pressures you to bypass license checks entirely. The FTC's guidance on investment scams is worth a read before buying any EA from an unfamiliar seller, and our own EA red flags and scams guide covers the specific warning signs to check for in this space.

Problem 5: Connection and Server Issues

If the bottom right corner of MT4 shows "No connection" or "Invalid account," the EA simply can't function:

  • "No connection": check your internet connection, switch to a different broker server (File > Login), or just restart MT4
  • "Invalid account": re-enter your login credentials through File > Login to Trade Account
  • "Trade context busy": another EA or script is already running. Wait it out, or remove the conflicting EA
  • Frequent disconnections: this usually points to an unstable internet connection. Consider a VPS for stable connectivity

A home internet connection, even a good one, isn't built for 24/5 uptime -- ISP maintenance windows, router reboots, and power blips all interrupt a locally-run terminal. Running MT4 or MT5 on a VPS close to your broker's trade server removes most of this category of problem outright, since the terminal keeps running whether or not your own computer is on. MetaQuotes publishes its own MetaTrader VPS service as one option, though any reputable low-latency VPS provider works; the goal is consistently low ping to the broker's server, not a specific brand.

Problem 6: Symbol Not Found or Mismatch

Brokers don't agree on symbol names. Your EA might be coded for "XAUUSD" while your broker lists the same instrument as "XAUUSD.r" or just "Gold":

  • Check Market Watch: right-click Market Watch and select Show All to see every available symbol
  • Find the exact name: note the exact symbol name your broker uses, suffixes included
  • Update the EA: many EAs let you type the correct symbol name into the input parameters
  • Contact support: if the EA has no symbol input at all, reach out to the developer directly

Gold symbol variations: XAUUSD shows up under different names depending on the broker, including XAUUSD, XAUUSD.r, XAUUSD.a, Gold, GOLD, GoldUSD, and XAUUSDm. Check Market Watch to confirm the exact symbol yours uses.

The suffix itself usually tells you something about the account type -- a ".r" or ".a" often marks a raw-spread or ECN-style account variant at the same broker, rather than a different market. Since gold (XAU) is quoted against the US dollar as a spot-style CFD by most retail brokers rather than traded as a listed futures contract, there's no single universal ticker the way there is on an exchange. If you want to see how the underlying market itself is quoted and tracked outside the CFD layer, resources like the World Gold Council's Goldhub and CME Group's gold futures data are useful reference points, though your EA will always trade whatever symbol your specific broker lists.

Problem 7: EA Performing Worse Than Expected

If the EA is trading fine but the results fall short of what the developer advertised, look at these first:

  • Spread too wide: your broker might be quoting a 30-40 point gold spread when the EA was built around 10-15 points. Try an ECN broker
  • Wrong timeframe: an H4 strategy run on M15 will behave nothing like it was designed to
  • VPS latency: slow round-trip time between your VPS and the broker's server shows up as slippage
  • Market conditions changed: a strategy tuned for trending markets tends to struggle once price starts ranging, and the reverse is true too
  • Over-leveraged: oversized lots turn every losing trade into a bigger dent in the account. Our risk management guide covers this in depth

Problem 8: EA Stops Trading After Running Fine for Weeks

This one catches people off guard because nothing appears to have changed. The EA worked correctly for days or weeks, then one morning there are no new trades and no obvious error on screen. A few causes account for almost every case:

  • VPS or terminal disconnected silently: the connection dropped and MT4/MT5 never automatically reconnected. Check the bottom-right corner for "No connection" and reboot the terminal if needed
  • Windows updates restarted the VPS: most VPS providers apply patches on a schedule, and if MT4 isn't set to auto-launch on startup, the platform stays closed after a reboot until someone opens it manually
  • Broker changed server address: brokers occasionally migrate to new trade servers. Go to File > Login to Trade Account and check whether a new server appears in the list
  • AutoTrading got toggled off: a platform update, a misclick, or another script running on the same terminal can silently disable the AutoTrading button
  • Chart got closed or the EA got removed: double-check the chart still shows the EA name in the top-right corner with a smiley face, not just an empty chart

The fix for all of these is really about detection speed rather than the fix itself, which is usually a simple restart or re-login. Setting up VPS uptime monitoring so you get an alert the moment the connection drops turns a multi-day gap in trading into a five-minute fix.

Problem 9: Backtest Results Don't Match Live Trading

This is less a "problem" with a single fix and more a structural reality of how backtesting works. A backtest replays historical price data through the EA's logic in a simulated environment; live trading executes real orders against a real broker's real liquidity. Those two things will never match perfectly, and understanding why keeps expectations realistic:

  • Spread modeling: most backtests use either a fixed spread or a simplified historical spread series, while live spreads widen and narrow throughout the day, especially around news and session opens
  • Tick data quality: MT4's strategy tester historically relied on generated ticks rather than true historical tick-by-tick data, which can smooth over exactly the kind of price spikes that cause slippage live. MT5's tester improved on this significantly
  • No requotes or execution delay in most tests: a backtest usually assumes instant, guaranteed fills at the requested price, which real market execution doesn't offer
  • Different market regime: if the backtest period was more trending or less volatile than current conditions, results diverge regardless of how well the code was tested

Investopedia's overview of backtesting covers these limitations in more general terms, and they apply to any automated strategy, not just gold EAs. We go into far more depth on this specific gap in our backtest results vs. real trading guide -- it's worth reading before assuming a discrepancy means something is broken.

Preventing EA Problems Before They Start

Most of the issues above are fixable in minutes once you know what to look for, but a short setup routine prevents the majority of them from happening at all:

  • Use a VPS from day one rather than switching after the first disconnection costs you a missed trade
  • Confirm your broker explicitly allows algorithmic trading and is regulated by a recognized authority -- the CFTC's consumer protection resources outline what to check before funding any trading account
  • Note the exact symbol name your broker uses for gold before you ever attach the EA, so a mismatch never happens in the first place
  • Check the Experts log weekly, even when everything looks fine, since some warnings show up long before they cause a real problem
  • Keep a record of your EA's license details (account number, purchase date, vendor contact) somewhere separate from the VPS itself, so a hardware reset request doesn't turn into a scramble

Frequently Asked Questions

Why is my EA not trading?

Most common causes: AutoTrading is disabled (click the green button), EA shows sad face (enable "Allow live trading" in properties), wrong symbol name, or trading conditions not yet met. Check the Experts tab for error messages.

Why does my EA show a sad face on the chart?

The EA lacks trading permissions. Go to Tools > Options > Expert Advisors, check "Allow automated trading." Then right-click chart > Expert Advisors > Properties and enable "Allow live trading."

Why is my EA opening wrong lot sizes?

Check the EA's lot size or risk percentage in its input parameters. Auto lot sizing adjusts based on balance. Also verify your broker's minimum lot and lot step requirements for the instrument.

How do I fix EA license errors?

Contact the EA vendor with your account number and MT4 installation details. Common fixes: register your account number, request hardware ID reset for new VPS, or renew an expired subscription.

Why does my EA work on demo but not live?

Possible causes: demo-only license, different symbol names between servers, different leverage affecting margins, or broker restrictions on EA trading. Check the Experts tab for specific error messages.

Why did my EA stop trading after running fine for weeks?

Usually a silent VPS or terminal disconnection, a Windows update that restarted the VPS without relaunching MT4, a broker server migration, or AutoTrading getting toggled off. Setting up VPS uptime monitoring catches this within minutes instead of days.

Why don't my backtest results match live results?

Backtests replay historical data under simplified conditions -- modeled spreads, generated or lower-quality tick data, and no requotes or execution delay. Live trading includes real spread widening, slippage, and broker execution quirks a backtest can't fully replicate. Some gap between backtest and live is normal; a large, sustained gap is worth investigating.

Is it normal for an EA to have losing streaks?

Yes. No strategy wins every trade, and losing streaks happen to automated and manual traders alike since markets move in cycles rather than straight lines. What matters is whether losses stay within the risk parameters you set and whether results over a meaningful sample still track the strategy's verified history.

How do I know if my broker is EA-friendly?

Confirm the broker explicitly permits algorithmic/EA trading in its terms, check that it offers a low-latency server near your VPS region, look for consistently tight gold spreads without excessive requotes, and verify it's regulated by a recognized financial authority before depositing funds.

Can I run more than one EA on the same MT4 or MT5 account?

Technically yes, but it increases the risk of "Trade context busy" errors and conflicting orders if the EAs trade the same symbol. If you do run multiple EAs, use separate magic numbers so each one only manages its own trades, and monitor margin closely since combined lot sizes draw down the same account balance.

Why is my EA opening more trades than it should?

The usual cause is a second copy: the same EA attached to two charts, or running on your PC and on a VPS at the same time on one account. Remove the extra copy. A grid EA opening several levels in one direction is working as designed, not duplicating.

What should I do after my broker changes its trade server?

Open File > Login to Trade Account, choose the new server name your broker gave you and log in again. Then confirm the Algo Trading button is on and the EA's name and status icon are back in the chart corner.

Myfxbook Verified

Automate Your XAUUSD Trading

MT5Hedging cent account
XAUUSDGold only
GridBasket take-profit
Lifetime license $299 one-time
Get Lifetime Access — $299 →
✓ License key by email✓ One MT5 account per key✓ MT5 cent accounts✓ Full setup help
GV

Golden Viper EA

Written by Golden Viper EA, the maker of the Golden Viper EA gold Expert Advisor for MetaTrader 5. We sell the EA, so weigh our product mentions with that in mind; its live account is public on Myfxbook.

Myfxbook VerifiedLive account verified on MyfxbookPublic track record

Let Golden Viper EA trade gold for you

Automated XAUUSD grid trading for MT5 cent accounts, verified live on Myfxbook. One-time $299, lifetime access.

Get Lifetime Access — $299

Start Free 3-Day Trial → · Full setup help