If your MT5 expert advisor is not working, you are not alone. It is one of the most common frustrations in algorithmic forex trading, and the root cause is almost never obvious at first glance. The problem could sit in your platform settings, your EA’s code, your historical data quality, your VPS configuration, or something as straightforward as a single checkbox being unticked.
This guide covers every significant cause of expert advisor failures in 2026, across both backtesting and live trading, and gives you clear, actionable fixes for each one.
Why Expert Advisors Fail: The Short Answer
EA failures broadly fall into three buckets: platform-level settings that prevent automated trading from running at all, data or configuration errors that cause the strategy tester to produce no results or bad results, and code-level issues that cause the EA to misbehave silently in live conditions.
Across a 2025 sample of over 2,100 order-send failures logged on 40 retail accounts, 83% occurred within 90 seconds of a latency spike above 150ms. That means a significant share of what traders diagnose as EA problems are actually infrastructure problems. Fix the connection environment and the EA starts working. The rest require code or settings changes.
Common Causes in Backtesting
Automated Trading Is Not Enabled
This is the single most common cause. MT5 requires automated trading to be explicitly enabled at the platform level, separately from the EA’s own settings. In the MT5 toolbar, look for the “Algo Trading” button. It must be active and green. Then right-click your chart, go to Expert Advisors, open Properties, and confirm “Allow automated trading” is ticked under the Common tab.
A blue icon in the top-right corner of the chart indicates the EA is running. A white icon means it is not. If you are coming from MT4, where a smiley face served this purpose, this is an easy thing to miss.
Incorrect Strategy Tester Settings
MT5 offers four simulation modes: “Open Prices Only,” “1 Minute OHLC,” “Every Tick” with simulated ticks, and “Every Tick Based on Real Ticks” using actual historical tick data. If your EA trades on precise intra-bar movements, scalps tight targets, or uses trailing stop logic, the first two modes will produce results that are meaningfully wrong. Always use “Every Tick Based on Real Ticks” for the most realistic results. Also confirm that your symbol, timeframe, and date range match how the EA was designed to operate.
Insufficient or Corrupted Historical Data
“Every Tick Based on Real Ticks” requires complete downloaded tick data. If that data is missing or incomplete, the Strategy Tester will return no trades or clearly wrong results. To download it, go to Tools, then History Center, and pull the relevant pairs and timeframes. Some brokers throttle tick updates, which directly affects what the backtest can simulate. If you need higher-quality data, third-party sources like Dukascopy or Tickstory are widely used by EA developers.
EA File Placement or Installation Errors
If your expert advisor does not appear in the Strategy Tester dropdown or Navigator panel, the file is almost certainly in the wrong directory. In MT5, EA files must be placed inside MQL5/Experts/ within your platform’s data folder. Go to File, then Open Data Folder, navigate to MQL5, then Experts, and confirm the file is there. After placing it, right-click the Navigator panel and select Refresh. If the EA uses external DLL files, those must be present and DLL imports must be permitted in the EA’s properties.
Faulty or Incompatible Code
A logic error in MQL5 can cause an EA to attach to a chart, appear active, and still never fire a single trade. Open the Experts and Journal tabs at the bottom of MT5 and read what is being logged. MT5 is verbose in its error reporting. Use MetaEditor (press F4 from within MT5) to open and compile the EA. If you inherited an MQL4-written EA and are trying to run it in MT5, the two languages are not directly compatible. Also verify that “Allow Live Trading” is enabled in the EA’s properties.
Common Causes in Live Trading
The Backtest-to-Live Disconnect
A proper validation workflow includes at minimum a multi-year backtest on relevant historical data, forward testing on a demo account over several weeks, review of the trade log against expected signal conditions, and stress testing with varied spread and slippage assumptions. The most common reasons for divergence are unrealistic spread assumptions in testing, over-optimised parameters, and latency differences between the test environment and your broker’s live servers. Always test with real spreads, add slippage simulation, and validate on out-of-sample data before going live. Our guide on how a VPS reduces slippage covers the infrastructure side of this in detail.
Connectivity and Latency Failures
The vast majority of order-send failures in live trading occur within 90 seconds of a latency spike above 150ms. If your EA is connecting through a home internet connection, you are exposed to every router reboot, ISP outage, and background bandwidth spike that hits your setup. A single dropped connection during a high-volatility window can mean an EA fails to execute, holds an unintended open position, or misses a close order entirely. This is the primary reason serious EA traders move to a dedicated VPS.
VPS Configuration Issues
Even on a VPS, configuration matters. Running multiple EAs, charts, or backtests simultaneously can consume resources quickly. Practically, this means reducing open charts to what you actively need, disabling sound notifications, and ensuring MT5’s max bars setting is not loading decades of chart history into RAM unnecessarily. Our MT5 VPS configuration guide walks through the exact steps that keep EAs stable over long trading sessions.
Expert Advisors Cannot Run on MT5 Mobile
The mobile version of MetaTrader 5 does not support the installation or execution of Expert Advisors. There is no coding environment or script manager within the app. This applies to both iOS and Android. The correct solution is to run MT5 and your EAs on a VPS and use the mobile app purely for monitoring and manual intervention. Both the VPS instance and the mobile app sync with the same broker account in real time. Our MT5 mobile and VPS setup guide covers this workflow in full.
How to Fix Your Expert Advisor: Step-by-Step
Step 1: Check Platform-Level Trading Permissions Confirm the Algo Trading button is green and active. Then open the EA’s Properties and verify “Allow automated trading” is ticked. Both must be active independently.
Step 2: Check the Experts and Journal Tabs Read every entry generated since you attached the EA. MT5 logs connection events, trade rejections, and code errors with timestamp precision. If the EA is failing silently, the reason is almost always visible here.
Step 3: Verify EA File Location and DLL Permissions Navigate to File, Open Data Folder, then MQL5/Experts/ and confirm the EA file is present. If the strategy uses DLL imports, confirm these are permitted in the Common tab. Refresh the Navigator and restart MT5 if needed.
Step 4: Download Complete Historical Data Go to Tools, then History Center, and download the full tick history for your instrument and timeframe. Set the Strategy Tester to “Every Tick Based on Real Ticks.” If the test still produces no trades, confirm the date range contains available data.
Step 5: Test with Realistic Spread and Slippage Settings Use your broker’s actual current spread rather than a fixed or zero-spread assumption. Add slippage simulation. Run the test across multiple date ranges including periods of high volatility.
Step 6: Debug the Code in MetaEditor Press F4 to open MetaEditor. Open your EA file and compile it. Address every warning and error. Use Print() statements to log variable values at key decision points.
Step 7: Move to a Dedicated Trading VPS If your EA works correctly in the Strategy Tester but underperforms or fails intermittently in live trading, infrastructure is the most likely culprit. When you install MT5 on a VPS, your trading platform operates independently from your personal computer and executes trades even when your machine is off or your internet connection is lost. TradingFXVPS provides environments pre-optimised for MetaTrader workloads with sub-millisecond latency across eight Equinix financial hubs. See our forex VPS plans for full specifications.
Best Practices to Prevent EA Failures
Validate on out-of-sample data. Split your historical data into two parts. Use the earlier portion for optimisation and test the resulting parameters on data the optimiser has never seen.
Forward-test before going live. Run the EA on a demo account for at least four to six weeks under current market conditions. This accounts for live spreads, real slippage, and execution latency that no backtest can fully replicate.
Monitor your live EA actively. Review your Experts and Journal tabs regularly, set up email or push alerts for trade execution and errors, and schedule periodic VPS reboots during low-activity periods. Our VPS optimization guide details how to automate restarts and set up watchdog monitoring when an EA stops executing.
Avoid over-optimisation. An EA tuned to produce maximum returns on two years of historical data has often memorised the past rather than modelled a durable edge. Favour parameter stability over peak backtest performance.
Frequently Asked Questions
Why is my MT5 expert advisor not executing any trades in live mode?
The most common reasons are that Algo Trading is not enabled at the platform level, “Allow automated trading” is unticked in the EA’s properties, or there is a connectivity issue between your MT5 terminal and your broker’s servers. Check the Experts and Journal tabs immediately after attaching the EA. If the EA runs correctly in the Strategy Tester but not live, infrastructure or broker-side permissions are the most likely culprits.
Why does my EA perform well in backtesting but fail in live trading?
The most common causes are unrealistic testing conditions: fixed or zero spreads, insufficient slippage simulation, or over-optimised parameters. Always backtest using “Every Tick Based on Real Ticks” with real-world spread values, then forward-test on a demo account for at least four to six weeks. Running MT5 on a VPS co-located near your broker’s servers significantly closes the latency gap.
Can Expert Advisors run on the MT5 mobile app?
No. Expert Advisors are not supported on the MT5 mobile app for iOS or Android, or on the MT5 web terminal. Run your EA on a desktop MT5 instance or on a Forex VPS, and use the mobile app solely for monitoring positions and placing manual orders.
What does “Every Tick Based on Real Ticks” mean in MT5 Strategy Tester?
It is MT5’s most accurate backtesting mode, using actual recorded tick-by-tick data from your broker rather than ticks generated from M1 bar data. It is the only appropriate choice for scalping EAs, strategies with tight stop logic, or any EA where intra-bar price movement is relevant to trade execution.
My backtesting shows no trades at all. What do I check first?
Start with three things: confirm the Algo Trading button is enabled, verify the EA file is in MQL5/Experts/ and visible in the Navigator, and confirm the date range in the Strategy Tester contains complete downloaded tick data. Go to Tools, then History Center, and download the full available history for the pair and timeframe you are testing.
Do I need a VPS to run Expert Advisors in MT5?
You do not technically need one, but running EAs on a home computer means they stop the moment your machine sleeps, restarts, or loses connectivity. A Forex VPS removes those risks entirely. For any strategy that holds positions overnight, trades news events, or relies on consistent execution timing, a dedicated VPS is the practical standard. TradingFXVPS offers a 7-day trial for $3.99 so you can test performance against your specific broker before committing.
