Installing a forex robot on MetaTrader 5 takes under 3 minutes. You need two things: MT5 already installed and logged into your broker account, and your EA file in .ex5 format. If your file is .ex4, stop here — .ex4 files are MT4 only and will not run on MT5 under any circumstance. You need the .ex5 version from your EA developer.

MT4 vs MT5 Installation — Key Differences

If you have already installed an EA on MT4, the MT5 process is nearly identical — with five important differences. Confusing any one of these is the source of most failed MT5 installations.

Element MT4 MT5
EA file format .ex4 .ex5 — not interchangeable
Folder path MQL4/Experts MQL5/Experts
AutoTrading button name AutoTrading Algo Trading
EA Properties tabs Common + Inputs Common + Inputs + Dependencies
Account mode Hedging only Hedging or Netting (broker-dependent)
Error log location Terminal → Experts tab Terminal → Journal tab

If your EA file is .ex4 and you need the MT4 installation process, see the complete guide: how to install a forex robot on MT4.

Before You Start

Confirm these before touching the Experts folder:

File Type What It Is Ready to Run on MT5?
.ex5 Compiled EA for MT5. Source code is hidden. Yes — paste into MQL5/Experts and run
.mq5 MQL5 source code. Readable and editable. No — must be compiled in MT5 MetaEditor (F7) first
.ex4 MT4 compiled file. No — incompatible with MT5. Request .ex5 from developer.
.mq4 MT4 source code. No — MQL4 cannot be compiled in MT5 MetaEditor without full conversion.

Also confirm your broker account permits automated trading. Some account types restrict EA execution on live accounts. For a full breakdown of which jurisdictions and broker configurations block automated trading, see is it legal to use forex EAs.

If you have not yet decided which EA to install on MT5, what is a forex EA covers the difference between trading EAs and utility EAs — which affects how you configure the Inputs tab in Step 4.

Step 1: Open the MT5 Data Folder

In MetaTrader 5, click File in the top menu bar, then select Open Data Folder. This opens your MT5 root directory in Windows Explorer.

Navigate into the MQL5 folder, then open Experts. This is the only folder MT5 reads for EA files. Note the folder name carefully: it is MQL5, not MQL4. If you paste your file into MQL4/Experts by mistake, MT5 will never find it.

MT5 Data Folder To Paste EA files
MT5 menu — File → Open Data Folder, Windows Explorer showing path: …\MQL5\Experts\

Step 2 — Copy the .ex5 File into the Experts Folder

Paste your .ex5 file into the MQL5/Experts folder. If your EA came with additional files, place them as follows:

Missing .dll files are among the most common causes of “Initialization Failed” errors on MT5. Check your EA vendor’s installation documentation for any required companion files before proceeding to the next step.
The forex robot below comes with additional files, so I need to paste each file to its right folder

QL5/Experts folder in Windows Explorer with .ex5 file
Paste the .ex5 file to Robot folder
MQL5/Libraries folder in Windows Explorer with .dll file
Paste the .dll file to MQL5/Libraries

Step 3: Refresh Navigator or Restart MT5

MT5 does not auto-detect new files added while the platform is running. Two options:

After refreshing, expand the Expert Advisors section in the Navigator panel. Your EA should appear by filename. If it does not, return to Step 2 and confirm the file is in MQL5/Experts — not MQL4/Experts.

refresh-navigator-mt5-to-see-robot

Step 4: Attach EA to Chart

Drag the EA from the Navigator panel onto the correct chart. Attach it to the exact symbol and timeframe the EA was designed for. A gold EA belongs on an XAUUSD chart. A EUR/USD scalper belongs on a EURUSD chart at the specified timeframe. Check the EA documentation if unsure — attaching to the wrong symbol causes incorrect pip value calculations and broken position sizing.

When you drop the EA onto a chart, the EA Properties window opens. MT5 has three tabs — one more than MT4:

 MT5 EA Properties window showing all three tabs
MT5 EA Properties window showing all three tabs — Common, Inputs, Dependencies]

Step 5: Enable Algo Trading

Locate the Algo Trading button in the MT5 toolbar. Click it until it turns green. A red button means automated trading is globally disabled across the entire platform — no EA will execute trades regardless of individual settings.

Note the naming difference: MT4 calls this button AutoTrading. MT5 calls it Algo Trading. Same function, different label. If you are following MT4 documentation while working in MT5, this is a common point of confusion.

Once Algo Trading is enabled and the EA is correctly attached, check the top-right corner of your chart:

Leave a Reply

Your email address will not be published. Required fields are marked *