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 there are key differences that trip up traders who are switching platforms. MT5 uses a different folder structure, different file extensions, and has additional features like the built-in MQL5 Market that simplifies installation. I have helped traders install EAs on both platforms for years, and this guide on how to install an EA on MT5 covers the exact steps you need along with every issue I have seen people encounter during the process.

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

MT4 EAs do not work on MT5. The .ex4 and .mq4 files are incompatible with MT5. You need an .ex5 version specifically compiled for MetaTrader 5. If your EA provider only supplied MT4 files, contact them 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

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 in subfolders within the Experts directory. Many MQL5 Market EAs install into their own subfolders automatically. If the EA documentation specifies a subfolder structure, follow those instructions exactly.

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. Press F7 or click Compile. If compilation succeeds, an .ex5 file is created automatically. If it fails, check the errors panel -- missing include files or dependencies are the most common causes.

Golden Viper EA works on both MT4 and MT5.We provide the correct file for your platform. +135% monthly, Myfxbook verified.
Try Free →

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

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 -- it must show 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

Installing EAs from the MQL5 Market

MT5 includes a built-in marketplace with thousands of EAs. This is the easiest installation method as everything is automatic:

  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 installed from the MQL5 Market receive automatic updates, are verified by MetaQuotes for security, and can be tested in the Strategy Tester before purchase. Most paid EAs offer a free demo version that works on the tester only.

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

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 if the EA requires additional .mqh files
  • Wrong MetaEditor version -- ensure you are using the MT5 MetaEditor, not MT4's
  • Syntax errors in .mq5 source -- contact the EA developer

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 is properly installed but not placing trades, the issue is likely configuration-related. See our EA not trading troubleshooting guide for a complete diagnostic process.

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.

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.

Myfxbook Verified

Install a Proven Gold EA on MT5

+135%Monthly Returns
81%Win Rate
24/5Automated
Starting at $99/month
Start 7-Day Free Trial →
✓ No credit card required✓ Full setup support✓ MT4 & MT5 compatible
GV

Golden Viper EA Team

We specialize in automated XAUUSD trading with verified live results. Golden Viper EA comes with both MT4 and MT5 versions plus full installation support.

Myfxbook VerifiedLive Trading Since 202481% Win Rate