New

11 tools. $557.98 if bought one by one. 5 new Premium desks inside.$557.98 one by one

$97 once$97See all 11See it
ProEA Lab · MT5, TradingView and trading research · Evidence standards
Systems

How to Install an EA on MT5: EX5, MQ5 and Fixes

Install an EA in MT5's Experts folder, compile MQ5 source, attach it to a chart, and check trading permissions, missing files and broker sessions.

PL · 4 min readUpdated
A hand lowering a small brass clockwork trader figurine into a fitted socket on a dark wooden desk console etched with a candlestick chart — poster titled Install the Machine.

To install an EA on MT5 desktop, put the EA under MQL5\Experts, compile the main .mq5 file if supplied, and attach it from Navigator to a chart. Trading also requires permission at both the platform and EA levels. Start on a demo account with the EA's intended symbol and inputs.

This guide covers the Windows desktop terminal. Installation makes the software available; it does not establish whether the strategy works. The steps below follow MetaQuotes documentation checked on October 9, 2026.

From file to running EA, step by step.Pick what you received: an .ex5, .mq5 source, or a Market purchase.
✓Open the data folderFile → Open Data Folder✓Paste the .ex5 into ExpertsMQL5 → Experts (subfolders are fine)✓Refresh NavigatorNavigator → Expert Advisors → Refresh✓Drag it onto a chartInputs, then Common → Allow Algo Trading✓Turn on Algo TradingToolbar button (older builds: AutoTrading)XAUUSD, H1Your EAThe EA's name and icon appear at the chart's upper right. An .ex5 is already compiled:nothing to build.

A simulated walkthrough of the Windows desktop terminal, not a screen recording. Menu names can differ slightly between MT5 builds.

Read as text
  1. 1. Open the data folder: File → Open Data Folder.
  2. 2. Paste the .ex5 into Experts: MQL5 → Experts (subfolders are fine).
  3. 3. Refresh Navigator: Navigator → Expert Advisors → Refresh.
  4. 4. Drag it onto a chart: Inputs, then Common → Allow Algo Trading.
  5. 5. Turn on Algo Trading: Toolbar button (older builds: AutoTrading).
  6. The EA's name and icon appear at the chart's upper right. An .ex5 is already compiled: nothing to build.

How this window was chosen: Steps, folders and keys from MetaQuotes' MT5 help on Expert Advisors, attaching them to charts and Market purchases, checked 2026-10-09. Newer builds label the toolbar button Algo Trading and the EA's checkbox Allow Algo Trading; older help pages say AutoTrading.

Where do EA files go in MT5?

Use the data folder of the MT5 terminal you actually opened:

  1. Choose File → Open Data Folder, then open MQL5 → Experts.
  2. Extract the package and place the EA there. Subfolders inside Experts are supported; keep the supplied folder structure instead of flattening everything into one directory.
  3. If you received source, compile it as described below. In MT5's Navigator → Expert Advisors, refresh and expand the relevant folder to find the executable.

MetaQuotes explicitly documents EA folders, subfolders and source-file installation. A missing EA is a reason to check the terminal, path and compiled file, not evidence that subfolders are invalid.

Hand-drawn sketch of a file-explorer window with a folder tree descending to MQL5 and an open EXPERTS folder; an orange arrow drops an EA file card into it.
Start at the terminal's data folder, then MQL5 → Experts. An EA can also live in a subfolder of Experts.

How do I attach the EA to a chart?

Drag the EA from Navigator onto the intended chart, or double-click it with that chart selected. Review Inputs and the EA's trading permission before clicking OK. Its name and status icon should appear at the chart's upper right.

Only one EA runs per chart; attaching another replaces the first. MetaQuotes explains attachment, inputs and trading permissions.

If a package lists dependencies, follow its installation instructions. Enable DLL imports only for a trusted EA that requires them; it is not a universal installation step.

How do I load the supplied settings preset?

A .set file contains input settings, not the EA itself. Install the EX5 or compile the MQ5 first. Then open the EA's properties, choose Inputs → Load, select its preset and review the displayed values before pressing OK. Use Save to keep the settings you actually tested; Reset restores defaults. MetaQuotes documents loading and saving input presets, checked 2026-10-15.

For example, a package containing ExampleEA.ex5 and ExampleEA-demo.set has two different jobs: the EX5 goes under MQL5\Experts; the preset is loaded through Inputs after selecting that EA. These are illustrative filenames. A preset name does not establish that its settings suit your EA version, symbol or account, and loading it does not grant trading permission.

Before a demo run, keep a small installation record:

CheckEvidence to keep
Correct programTerminal data-folder path, EA filename and version shown in Common
Correct configurationChart symbol/timeframe and the actual Inputs values after loading the preset
Started successfullyChart name/status icon plus any initialization messages in Experts and Journal
Trading permittedPlatform and EA permission states, checked separately from attachment

An EA can keep processing ticks while Algo Trading is disabled; that switch blocks its trade requests rather than stopping the program. This lets you distinguish a loaded program from permission to place orders. It is not proof of an entry signal or a successful order. See MetaQuotes' OnTick reference, checked 2026-10-15.

Bought it on the MQL5 Market?

Don't copy files: a Market EA installs itself. After you buy it in the terminal, it downloads to MQL5\Experts\Market and appears in Navigator under Market → My Purchases; drag it onto a chart as above.

On another computer, sign in to your MQL5 account under Tools → Options → Community, then press Install next to the product under Market → Purchased. Each new computer uses one of the product's activations, at least five per purchase, MetaQuotes says. MetaQuotes: buying from the Market.

Why isn't my EA trading?

No trades can mean disabled permissions, a rejected order or simply no entry signal. Check the evidence before changing strategy settings (the Journal's return codes are decoded in MT5 EA not taking trades):

  1. Permissions. Check the toolbar's Algo Trading / AutoTrading control and the EA's own permission. Either can block automated orders; do not assume the setting from its default or from attachment alone.
  2. Logs. Read Toolbox → Experts for EA messages and Journal for platform and trading events. Save the exact error, symbol and time when investigating. These are the two logs described in MetaQuotes' logging guide.
  3. Broker sessions and contract settings. In Market Watch, right-click the symbol and open Specification. Check its trading sessions, permitted volume and margin conditions. Forex and XAUUSD schedules depend on the broker and symbol; a quiet weekend does not prove the EA is working. MetaQuotes documents these specification fields.
  4. Entry conditions. Compare the EA's documented symbol, timeframe and filters with your inputs. If there is no qualifying setup, enabling trading will not create one. Use the MT5 backtest guide to inspect its behavior on historical data.
Hand-drawn sketch of the MT5 terminal with a candlestick chart, a Navigator tree with a drag path onto the chart, and the Algo Trading toolbar button circled in orange.
Check both the toolbar control and the EA's individual permission before expecting automated orders.

.ex5 or .mq5 — which did you get?

An .ex5 is an executable; an .mq5 is source code. An EX5 does not need you to compile it, though its package may still require supporting files. For source:

  1. Press F4 from MT5 to open MetaEditor.
  2. Open the EA's main MQ5 file or project, then press F7.
  3. Inspect the Errors tab. Compilation errors prevent a new executable; review warnings too. After a successful build, return to MT5 and refresh Navigator.

MetaQuotes' compilation guide explains the output and diagnostics. Compiling an include file alone does not produce the main EA.

If an include file is missing, restore it to the path expected by the source. Angle-bracket includes resolve under MQL5\Include; quoted includes resolve relative to the source file. Moving files can therefore break dependencies. The MQL5 include reference describes the distinction.

ProEA EAs include MQ5 source for inspection and modification. Readable code helps explain behavior; it does not establish profitability. Whether an EA is worth running at all is a separate question: do forex EAs actually work?

Editorial panel on ivory paper reading: An EA you can't read is a black box — with an orange underline under can't read.
Source code gives you a way to inspect the implementation. Results still need testing.

After testing the installation on demo, export the MT5 trade history and review those trades in a journal. Record the EA version, inputs and test period so the next change has something concrete to compare against.

Use this animation on your site.

Frequently asked questions

Where do I put an EA file in MT5?

In the terminal's own data folder: File → Open Data Folder → MQL5 → Experts. Subfolders inside Experts are fine. Then right-click Expert Advisors in Navigator and choose Refresh.

Why doesn't my EA show up in Navigator?

Usually it's in another terminal's data folder, or it's .mq5 source: source files never show in Navigator. Open the .mq5 in MetaEditor (F4) and compile it (F7); the .ex5 it builds is what appears.

How do I install an EA bought on the MQL5 Market?

Buy it in the terminal and it downloads itself to MQL5 → Experts → Market, listed in Navigator under Market. On another computer, sign in to your MQL5 account and press Install under Market → Purchased; each new computer uses an activation.

How do I know the EA is running?

Its name and an icon appear in the chart's upper-right corner. Both the toolbar's Algo Trading button and the EA's own Allow Algo Trading box must be on for it to trade.

Do I need to compile an .ex5 file?

No. An .ex5 is already compiled and runs as it is. Only .mq5 source needs MetaEditor: press F4 to open it and F7 to build the .ex5.

Continue reading

MT5 EA Not Taking Trades? Six Checks and the Codes That Name Them

EA attached but no trades? Check both Experts and Journal, then the EA's permissions, symbol and request results. An empty log cannot identify the cause. Codes such as 10027, 10018, 10014 and 10019 help narrow the next check.

Oct 8 · ProEA Lab

Explainer cover titled MT5 EA not taking trades: six checks, one log line. A row of six check boxes, Algo Trading button, EA's own permission, account allows EAs, symbol is trading, lot size is valid and free margin, with the first one crossed out and the Journal line retcode 10027: Autotrading disabled by client terminal.

Every Tick vs Real Ticks in MT5: Why the Same EA Gets Two Results

MT5's tester can feed your EA the broker's recorded ticks, ticks it generates from each minute's OHLC, or just the four OHLC prices. When a stop and a target sit inside one minute, those modes can disagree on which one filled.

Oct 8 · ProEA Lab

Explainer cover titled Every tick vs real ticks: one minute, two results. A single 1-minute bull bar with a long trade's stop-loss at 2,398.00 and take-profit at 2,402.50 inside it, and the generated tick path going open, low, high, close, stopping out at the low before it reaches the target.

Walk-Forward Testing: Steps, Example and Limits

Optimize on earlier data, freeze the rules, test on the next unseen period and repeat. A dated walk-forward example, efficiency pitfalls and MT5 forward-test limits.

Aug 10 · ProEA Lab

A brass stencil sliding along a long paper chart strip, exposing only one unmarked section at a time while the rest stays covered — poster titled Judge the Unseen Part.