Skip to main content

MT5 EA Installation: How to Install an Expert Advisor in MetaTrader 5, Complete Guide

MT5 EA installation is a straightforward file-placement process once you know where MetaTrader 5 stores its files. This complete guide takes you through every stage: downloading the .ex5 file from your account dashboard, opening the data folder, copying the EA into MQL5/Experts, refreshing the Navigator, attaching the EA to a chart, enabling AutoTrading and testing on a demo account first. We also cover where MT5 EA installation differs from MT4 — hedging versus netting accounts, DLL permissions and the newer account structures — so you can deploy with confidence. Most users complete the whole process in under ten minutes, and our documentation hub holds related guides for backtesting and troubleshooting.

MT5 EA installation at a glance

An expert advisor is a compiled MQL5 programme that automates market analysis and trade management inside the terminal. As with MT4, installation is file placement: MT5 only loads EAs found in the Experts folder of its data directory. Six actions with realistic timings:

  • Download the .ex5 file from your AlgoTM dashboard — 1 to 2 minutes.
  • Open the data folder via File > Open Data Folder — under 30 seconds.
  • Copy the EA into MQL5/Experts — under 1 minute.
  • Refresh the Navigator — 10 seconds.
  • Attach the EA to a chart and configure inputs — 2 to 3 minutes.
  • Enable AutoTrading and verify — 1 minute.

Set aside ten minutes for the first run; repeat installations take two to three minutes.

Step 1: Download your EA file

Log in to your AlgoTM account dashboard and download the expert advisor you hold a licence for. You receive a file ending in .ex5, the compiled MQL5 build. Save it somewhere easy to locate, such as Downloads or your Desktop, and note the file name — it must match exactly when you verify the installation. If your product ships with a .set file of recommended parameters, download that too. This step takes one to two minutes.

Step 2: Open the data folder

With MT5 running, open the File menu and choose Open Data Folder. This opens the directory where the terminal stores every file it uses: charts, profiles, indicators, expert advisors and logs. The path is worth remembering, because you will return to it for every future update. If you cannot see the File menu, maximise the terminal first. This step takes under thirty seconds.

Step 3: Copy the EA into MQL5/Experts

In the data folder, open MQL5 and then Experts. Paste the .ex5 file there. Do not use MQL5/Indicators or the root MQL5 folder — the Navigator only lists EAs from Experts. Subfolders for organising multiple strategies are supported and appear as a collapsible tree. This step takes under a minute.

Step 4: Refresh the Navigator

Back in the terminal, right-click the Navigator panel on the left side and choose Refresh. If the Navigator is hidden, press Ctrl+N to show it, or use View > Navigator. Expand Expert Advisors and find your EA. If it is absent, confirm the file sits in MQL5/Experts and refresh again; restarting the terminal rescans the folder. This step takes about ten seconds.

Step 5: Attach the EA to a chart

Drag the EA from the Navigator onto any open chart, or select the chart and double-click the EA. The settings dialogue appears with Inputs covering lot size, risk percentage, stop loss, take profit, trading hours and news filters. Set conservative values for the first run and click OK. A smiley face at the top-right of the chart confirms a successful load. The official MetaTrader 5 help pages document every input. This step takes two to three minutes.

Step 6: Enable AutoTrading

MT5 will not send orders until algorithmic trading is allowed. Click the AutoTrading button on the toolbar so it turns green, and confirm that Tools > Options > Expert Advisors has Allow Algo Trading ticked. Some brokers disable automated trading by default or require an opt-in at account signup; if the button will not engage, contact your broker. Check the Experts tab for confirmation messages. This step takes under a minute.

How MT5 EA installation differs from MT4

The folder name is the most obvious difference — MQL5/Experts rather than MQL4/Experts — but two account-level factors matter more. First, hedging versus netting accounts. MT5 accounts come in two types: a hedging account behaves like MT4, allowing separate long and short positions on the same symbol simultaneously, while a netting account consolidates all positions on a symbol into a single net position. The account type is fixed by your broker at account opening and cannot be changed afterwards, so choose an account that matches what your EA expects — each AlgoTM product page states which account types the EA supports. Second, position handling: MT5 EAs typically identify positions by ticket or magic number, and netting accounts change how those lookups behave. If an EA reports unexpected trade counts on a netting account, this is usually the cause.

DLL permissions in MT5 EA installation

Some EAs use external libraries (.dll files) for extended functionality such as news feeds or specialised mathematics, and MT5 blocks them by default. If your product requires a DLL, enable it via Tools > Options > Expert Advisors > Allow DLL imports. If the EA fetches data over the web, add its URLs under Allow WebRequest for listed URL in the same dialogue. Only grant these permissions for files you trust; an EA that cannot call its DLL will log an error in the Experts tab instead of trading. The official MQL5 documentation explains the permission model in full.

Testing MT5 EA installation on a demo account first

The installation flow is identical on demo and live terminals, so there is no reason to skip the demo stage. Forward-test for a minimum of three to six weeks and log the results before risking capital, using the decision gate in the start-here playbook. The Financial Conduct Authority advises new traders to practise with demo accounts before trading live, and our automation playbook covers risk configuration.

Frequently Asked Questions

What is the difference between hedging and netting accounts in MetaTrader 5?

A hedging account allows multiple open positions on the same symbol, including both long and short at once. A netting account merges all positions on a symbol into one net position. The type is fixed by your broker when the account is opened, so check which type your EA supports before choosing a broker.

Why does my MT5 EA need DLL permissions and how do I enable them?

DLLs extend what an EA can do, such as fetching news data or performing calculations not built into MQL5. Open Tools > Options > Expert Advisors and tick Allow DLL imports, adding any required WebRequest URLs in the same dialogue. Only allow DLLs from files you trust.

Can I install an MT4 expert advisor on MetaTrader 5?

No. MT4 EAs are compiled as .ex4 files and MT5 EAs as .ex5 files, and the two are not interchangeable. Install the MT5 version of the EA, or keep using MetaTrader 4 alongside MT5 if your strategy is MT4-only.

Is the installation process the same on demo and live MT5 accounts?

Yes. The data folder, MQL5/Experts location and Navigator refresh steps are identical, so test the EA on demo for three to six weeks first. If it behaves correctly there, the same configuration will deploy to your live account unchanged.

Explore Trading Automation

Risk disclosure: Trading foreign exchange, commodities, CFDs and cryptocurrencies carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. AlgoTM provides trading tools and technology only and does not provide investment advice, portfolio management or guaranteed returns.