Install EA on MT5: Complete Guide (2026)

Quick Answer

To install an EA on MT5: 1) In MT5, go to File → Open Data Folder, 2) Navigate to MQL5 → Experts, 3) Paste your .ex5 file, 4) Restart MT5 or right-click Navigator → Refresh, 5) Drag the EA onto your chart and click Algo Trading (green). MT5 also offers direct installation from the MQL5 Market.

Installing an EA on MT5 follows a similar process to MT4, but a few differences trip up traders who are switching platforms. The folder structure is different, the file extensions are different, and MT5 also has a built-in MQL5 Market that most MT4 users have never touched. An Expert Advisor is simply an automated script that reads market data and manages orders on your behalf, and MT5 gives it more infrastructure to work with than MT4 did, including native support for hedging and netting account types and a faster, multi-threaded strategy tester. I've walked plenty of traders through this on both platforms, so this guide covers the exact steps along with the issues that tend to come up along the way, plus a few things worth knowing before you let an EA trade unattended.

MT4 vs MT5: Key Installation Differences

If you are coming from MT4, understanding these differences will prevent common mistakes during MT5 EA installation:

FeatureMT4MT5
EA folderMQL4/ExpertsMQL5/Experts
Compiled file.ex4.ex5
Source file.mq4.mq5
Auto-trading buttonAutoTradingAlgo Trading
Built-in marketLimitedFull MQL5 Market
Netting/HedgingHedging onlyBoth supported

Most of these differences are cosmetic once you know about them, but the file extension and folder path mix-ups account for the bulk of "my EA won't show up" support requests I see. MT5 was built as a ground-up rewrite rather than an update to MT4, so the underlying MQL5 programming language and terminal architecture are genuinely different pieces of software that happen to share a similar interface. That's also why MT4 and MT5 behave differently in places beyond installation, such as order execution models and how partial closes are handled.

MT4 EAs do not work on MT5. The .ex4 and .mq4 files simply aren't compatible with MT5, so you'll need an .ex5 version built specifically for MetaTrader 5. If your EA provider only sent you MT4 files, reach out and ask for the MT5 version.

Step 1: Find the MQL5 Data Folder

The data folder in MT5 works the same way as MT4 but uses a different directory structure:

  1. Open your MT5 platform
  2. Click File in the top menu
  3. Select Open Data Folder
  4. A file explorer window opens to your MT5 data directory
  5. Navigate to the MQL5 folder
  6. Open the Experts subfolder

The typical path on Windows looks like: C:\Users\[Name]\AppData\Roaming\MetaQuotes\Terminal\[HASH]\MQL5\Experts

Why "File → Open Data Folder" Beats Manual Navigation

The AppData folder is hidden by default in Windows Explorer, and the terminal HASH is a long, randomly generated string unique to each MT5 installation on your machine. Typing the path from memory, or copying it from a screenshot someone else sent you, almost always fails because your HASH will be different from theirs. Using File → Open Data Folder from inside the running terminal sidesteps all of that: MT5 opens the exact folder tied to the exact installation you're currently using, which matters if you have more than one MT5 terminal installed (for example, one per broker). If you can't see hidden folders at all, Windows' folder options let you toggle "Show hidden files, folders, and drives," though you shouldn't need to once you're using the File menu shortcut.

On macOS, MT5 typically runs through the native Mac version of the platform or through a Windows compatibility layer. Either way, the same File → Open Data Folder menu option works and takes you to the equivalent MQL5/Experts location inside the app's container. Right-click the MetaTrader 5 icon in Finder and choose "Show Package Contents" only if the in-app menu option is unavailable for some reason; the in-app route is simpler and less error-prone.

Step 2: Place EA Files in the Correct Folders

MT5 has a structured folder layout within MQL5. Place each file type in its designated location:

  • .ex5 files (compiled EAs) → MQL5/Experts
  • .mq5 files (source code) → MQL5/Experts
  • .dll files (libraries) → MQL5/Libraries
  • .mqh files (include files) → MQL5/Include
  • .set files (presets) → MQL5/Presets

MT5 Subfolder Organization

Unlike MT4, MT5 encourages organizing EAs into subfolders within the Experts directory, and many MQL5 Market EAs will create their own subfolder automatically on install. If the EA's documentation specifies a particular subfolder structure, stick to it exactly.

What Else Lives Inside the MQL5 Folder

Experts, Libraries, Include, and Presets are the folders you'll touch most during installation, but the MQL5 directory has a few others worth knowing about once the EA is running:

  • MQL5/Files → where an EA writes logs, CSV exports, or its own configuration files if it's coded to do so
  • MQL5/Logs → MetaEditor's compiler logs, separate from the terminal's own Journal and Experts tabs
  • MQL5/Profiles → saved chart templates and workspace layouts, useful if you run the same EA setup across several charts
  • MQL5/Images → custom bitmaps some EAs use for on-chart dashboards or buttons

You generally won't need to touch these manually, but if an EA's documentation mentions a settings file it reads or writes, this is where to look for it.

A Note on Antivirus and Windows Permissions

Because the MQL5 data folder sits under your Windows user profile rather than Program Files, you shouldn't need administrator rights to copy files there. Occasionally an overzealous antivirus product will quarantine a freshly copied .ex5 file simply because it's an unfamiliar executable-like binary, which looks identical to a missing-file problem from inside MT5. If an EA vanishes from the Experts folder shortly after you place it, check your antivirus quarantine log before assuming the copy failed.

Step 3: Refresh MT5 and Verify

After placing the files, make MT5 recognize the new EA:

  1. In the Navigator panel (Ctrl+N), expand "Expert Advisors"
  2. Right-click on "Expert Advisors" and select Refresh
  3. Your EA should now appear in the list
  4. If it does not, restart MT5 completely

Compiling source code: If you have an .mq5 file, double-click it to open MetaEditor, then press F7 or click Compile. A successful compile creates the .ex5 file automatically. If it fails instead, check the errors panel; missing include files or dependencies are usually the culprit.

Journal Tab vs. Experts Tab

MT5's Toolbox (View → Toolbox, or Ctrl+T) has both a Journal tab and an Experts tab, and traders new to the platform mix them up constantly. The Journal logs terminal-level events: logins, connection status, and general platform activity. The Experts tab logs EA-specific activity: print statements the EA outputs, error codes it hits, and confirmation that it initialized correctly. When an EA seems to be attached but isn't behaving as expected, the Experts tab is almost always the more useful place to look first.

Golden Viper EA works on both MT4 and MT5.We provide the correct file for your platform, backed by real, publicly verified trades.
Get Access →

Step 4: Attach the EA to a Chart

With the EA visible in the Navigator, attach it to the correct trading chart:

  1. Open a chart for the symbol your EA trades (e.g., XAUUSD)
  2. Set the correct timeframe as specified in your EA documentation
  3. In the Navigator, find the EA under "Expert Advisors"
  4. Double-click the EA name or drag it onto the chart
  5. The EA settings dialog appears

MT5 EA Properties: Common Tab

The Common tab has these essential settings:

  • Allow Algo Trading: Must be checked for the EA to place trades
  • Allow DLL imports: Only enable if required by the EA
  • Allow modification of Signals settings: Enable if the EA uses MT5 trading signals

Running the Same EA on Multiple Charts

If you plan to run one EA on more than one symbol, or run several different EAs on the same account, each instance needs its own chart and, ideally, its own magic number. A magic number is just an identifying tag the EA attaches to the trades it opens, which lets it (and you) distinguish its own positions from trades opened by another EA or by you manually. Without unique magic numbers, two EAs on the same account can end up managing or closing each other's trades unintentionally. Our guide on running multiple EAs on one account covers this in more depth if that's your setup.

For gold specifically, double-check the exact symbol name your broker uses before attaching the EA. Some brokers list it as XAUUSD, others append a suffix like XAUUSD.m or XAUUSDm. Our guide on finding XAUUSD on MT5 walks through locating the correct symbol in the Market Watch window if it isn't visible by default.

Step 5: Configure Settings and Enable Algo Trading

Configure the EA parameters in the Inputs tab, then enable automated trading:

  1. In the Inputs tab, set your preferred parameters (lot size, risk, magic number, etc.)
  2. Click Save to create a preset file for future use
  3. Click OK to attach the EA
  4. Click the Algo Trading button in the toolbar until it shows green
  5. Also verify: Tools → Options → Expert Advisors → "Allow Algo Trading"

Verification Checklist

  • Algo Trading button is green in the toolbar
  • EA icon (blue hat) visible on the chart with no warning symbol
  • No errors in the Experts tab (View → Toolbox → Experts)
  • EA name displayed on the chart
  • Correct symbol and timeframe selected

Test on Demo Before Going Live

Even after installation checks out, it's worth attaching the EA to a demo account first rather than a funded live account. This confirms the EA behaves as expected on your specific broker's execution and symbol conventions before any real money is on the line. Our guide to running an EA on demo first covers what to watch for during that test window, and it applies to any EA, not just ones bought through the MQL5 Market.

Once you're satisfied with the settings, save the input configuration as a named .set file (via the Inputs tab's Save button) before switching accounts or reinstalling MT5. That preset saves you from re-entering every parameter by hand the next time, and it's worth keeping a backup copy outside the MQL5/Presets folder in case you ever reinstall the terminal from scratch.

Keeping Your EA Running 24/5

Installing the EA correctly only gets you halfway there. MT5 needs to stay open and connected to trade, and gold moves around the clock during the week, including during the Asian and London session hours when most home PCs are asleep. If your computer sleeps, restarts for updates, or loses internet, the EA stops managing trades until the terminal reconnects, which can leave an open position unmanaged at an inconvenient time.

Most traders who run an EA seriously end up on a lightweight forex VPS, essentially a small remote Windows machine that stays powered on and runs MT5 continuously so your own PC's uptime doesn't matter. Server location relative to your broker also affects execution speed, which our guide to running a trading robot 24/5 on a VPS covers alongside the setup steps, and our VPS specs breakdown gives a sense of the minimum hardware an EA like this realistically needs.

Installing EAs from the MQL5 Market

MT5 includes a built-in marketplace with thousands of EAs, and it's the easiest way to install one since the whole process runs on its own:

  1. Open MT5 and navigate to the Toolbox panel (Ctrl+T)
  2. Click the Market tab
  3. Search for the EA by name or browse categories
  4. Click Install (free) or Purchase (paid)
  5. The EA downloads and installs to the correct folder automatically
  6. It appears instantly in the Navigator panel, no restart needed

Market benefits: EAs from the MQL5 Market get automatic updates and pass a MetaQuotes security check, and you can try them out in the Strategy Tester before buying. Most paid EAs also come with a free demo version, though it only works in the tester.

The Market's built-in vetting reduces some risk, but it doesn't replace your own due diligence on whether an EA's actual trading approach fits your goals. Reading the product page's description, checking the developer's other listings, and looking at any linked Myfxbook verification for a live track record are all still worth doing before you commit money, Market purchase or not.

MQL5 Market vs Manual Installation

FeatureMQL5 MarketManual Install
Setup effortOne clickMultiple steps
Auto updatesYesManual download
Security verifiedYesDepends on source
Refund policyAvailableDepends on seller
Custom EAsNot availableYes

Security Considerations When Installing Third-Party EAs

An EA runs with the same permissions as MT5 itself and can place real trades on your account, so where you get the file from matters as much as how you install it. A few habits reduce the risk considerably:

  • Only download from the developer's official channel (their own site, the MQL5 Market, or a purchase confirmation email), not from a forum attachment or a link sent unsolicited in a chat group
  • Treat "Allow DLL imports" as a real permission, not a checkbox to enable by default. DLL access lets an EA execute code outside MQL5's normal sandbox, so only enable it if the specific EA's documentation says it's required
  • Keep a record of exactly which .ex5 file version you installed and from where, so if something looks wrong later you can compare against a known-good copy
  • Be skeptical of any EA promising guaranteed profits or no-loss trading; regulators including the CFTC and the FTC regularly warn that this framing is a hallmark of investment fraud, not a legitimate trading claim, since no automated system can eliminate market risk

If you were handed .mq5 source code rather than a compiled .ex5, you (or a developer you trust) can actually read through it before compiling, which is the one real advantage source access gives you over a black-box binary. Our guide on checking EA source for malware or backdoors covers what to look for if you go that route.

Troubleshooting MT5 EA Installation

Here are the most common issues I encounter when helping traders install EAs on MT5:

EA Not Appearing After File Copy

  • Verify the file extension is .ex5 or .mq5 (not .ex4 or .mq4)
  • Confirm the file is in MQL5/Experts, not MQL5/Indicators
  • Right-click Navigator → Refresh, or restart MT5
  • Check if the file is inside a nested subfolder that MT5 may not scan

Compilation Errors

  • Missing include files: check whether the EA needs additional .mqh files
  • Wrong MetaEditor version: make sure you're using the MT5 MetaEditor, not MT4's
  • Syntax errors in the .mq5 source: this one is on the EA developer to fix

EA Shows Warning Icon on Chart

  • Algo Trading disabled: click the button to turn it green
  • "Allow Algo Trading" unchecked in EA properties
  • DLL imports needed but not permitted
  • License validation failure -- check Experts tab for details

If the EA installed fine but still isn't placing trades, that's usually a configuration issue rather than an installation one. Our EA not trading troubleshooting guide walks through the full diagnostic process.

Common MT5 Error Messages and What They Mean

Beyond the warning icon itself, the Experts tab will usually print a specific message or numeric error code when something blocks a trade. These are the ones that come up most often during and shortly after installation:

Message / CodeWhat It MeansFix
"Algo Trading is disabled"Global or per-EA auto-trading toggle is offClick the Algo Trading button green; check Tools → Options
"Not enough money"Account balance or free margin can't support the requested lot sizeReduce lot size or review margin requirements with your broker
"Trade is disabled" / Error 4756The symbol is closed to trading (market closed, broker maintenance)Wait for the market to open; confirm trading hours for the symbol
"Invalid stops"Stop-loss or take-profit is closer to price than the broker's minimum stop levelWiden the distance or check your broker's stop level setting
Smiley face missing on chartEA didn't attach correctly, or the last compile failedRecompile the source, then re-drag the EA onto the chart
"Function is not allowed for real trading account"A restricted call (often DLL or signals related) is blocked by EA propertiesEnable the relevant checkbox in the Common tab if the EA genuinely needs it

Hedging vs Netting Accounts

MT5 supports two account types that affect how EAs manage trades:

  • Hedging: Allows multiple positions on the same symbol (works like MT4). Most EAs designed for both platforms expect hedging mode.
  • Netting: Only one position per symbol. Opening a second trade modifies the existing position. Some EAs do not support netting mode.

Check with your broker whether your account is hedging or netting, and verify your EA supports the account type. You can also confirm it yourself in MT5 by checking the account properties in the Toolbox, or by consulting MQL5's documentation on order and position handling, which explains how the two modes affect how trade requests are processed at the terminal level. Getting this wrong isn't usually a fatal error the EA will refuse outright; more often it just means the EA behaves differently than its documentation describes, since a strategy written assuming hedging can open multiple simultaneous positions in the same direction that a netting account will simply merge into one.

Updating or Reinstalling an EA

EA developers periodically release updated .ex5 files to fix bugs, adjust for broker changes, or add features. To update manually: remove the EA from any chart it's attached to, replace the old file in MQL5/Experts with the new one, refresh the Navigator, then re-attach and reapply your saved input settings. If the EA came from the MQL5 Market, updates typically show as a notification in the terminal and install with one click. Either way, check the developer's release notes for input changes before assuming your old .set preset will still be valid, since a new parameter or renamed input can cause a saved preset to load incorrectly. Our guide on updating an EA version covers this process step by step, including how to confirm the new version actually loaded.

Frequently Asked Questions About Installing EA on MT5

What is the difference between installing an EA on MT4 vs MT5?

MT5 uses a MQL5/Experts folder instead of MQL4/Experts. EA files use .ex5 and .mq5 extensions instead of .ex4 and .mq4. MT5 also has a built-in MQL5 Market for direct EA downloads. The overall process is similar, but files are not interchangeable.

Can I use an MT4 EA on MT5?

No. MT4 EAs (.ex4/.mq4) are not compatible with MT5. The MQL4 and MQL5 languages differ significantly. You need the MT5-specific version (.ex5/.mq5) from your EA provider.

How do I install an EA from the MQL5 Market?

Open MT5, go to the Toolbox panel, click the Market tab, search for the EA, and click Install or Purchase. The EA installs automatically to the correct folder with no manual file copying required.

Why does my MT5 EA show "Algo Trading is disabled"?

Click the Algo Trading button in the toolbar so it turns green. Also verify Tools, Options, Expert Advisors has "Allow Algo Trading" checked. Both the global setting and individual EA permission must be enabled.

Where is the MT5 data folder located?

In MT5, go to File, Open Data Folder. The path is typically C:/Users/YourName/AppData/Roaming/MetaQuotes/Terminal/HASH/MQL5/Experts. Always use File, Open Data Folder rather than navigating manually.

Do I need a VPS to run an EA on MT5?

A VPS is not required to install an EA, but it is required to keep it trading continuously. MT5 only executes an EA while the terminal is open and connected, so if your PC sleeps, loses power, or loses internet, the EA stops managing trades. A trading VPS keeps a lightweight always-on copy of MT5 running so the EA can act on signals around the clock during market hours.

How can I tell if an EA file might contain malware before installing it?

Only install .ex5 files from the developer's official source or the MQL5 Market, never from unsolicited links or forum attachments. A compiled .ex5 file can't be read like plain text, so you're trusting the source rather than inspecting the code yourself. If you were given the .mq5 source instead, it can be reviewed before compiling.

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

Yes, MT5 supports multiple EAs on one account, each attached to its own chart. Give each EA a unique magic number so MT5 and the EAs themselves can tell their trades apart, and review the combined margin and risk exposure across all EAs rather than evaluating each one in isolation.

How do I update an EA to a newer version on MT5?

Remove the EA from the chart, replace the old .ex5 file in MQL5/Experts with the new version, right-click Expert Advisors in the Navigator and select Refresh, then re-attach the EA and reapply your saved input settings. Confirm your saved .set preset is still compatible with the new version before applying it.

Myfxbook Verified

Install a Proven Gold EA on MT5

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

Daniel Cole

Daniel Cole writes about MetaTrader 4/5, Expert Advisors and trading automation for Golden Viper EA.

Myfxbook VerifiedVerified live 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