Complete Suite: all 12 tools. 6 Premium desks inside.All 12 tools $606.98 one by one

$606.98 one by one $299 once Save $307.98Get the SuiteGet it
ProEA Lab · MT5, TradingView and trading research · Evidence standards

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

Drop the EA's file to see which MT5 folder it goes in, then follow the steps below:

Open an .mq5, .ex5, .set or .tpl file here. It's read in your browser, never uploaded; a compiled .ex5 is identified, never decompiled.

Example · ProEA-Example-EA.mq5

Ready to compile
Type
Source (.mq5)
Program
Expert Advisor
Goes in
MQL5\Experts
Inputs
10

The source's defaults, in the layout MT5 saves. You can edit them before saving.

  1. 1Open Data Folder
  2. 2Drop in Experts
  3. 3F4, then F7
See its 10 inputs
  • Risk
  • InpRiskPercentRisk per trade, % of balance · double0.5
  • InpMaxTradesMax open trades · int3
  • InpUseTrailingTrail the stop · booltrue
  • Signal
  • InpSignalTFSignal timeframe · ENUM_TIMEFRAMES16385source: PERIOD_H1
  • InpEntryModeEntry mode · ENUM_ENTRY_MODE1source: ENTRY_PULLBACK
  • InpMagicMagic number · int20261023
  • Display
  • InpLineColorLine colour · color16748574source: clrDodgerBlue
  • InpCommentOrder comment · stringproea-examplesource: "proea-example"
  • InpStartDateIgnore bars before · datetime1767571200source: D'2026.01.05 00:00'
  • InpNoteNote (never optimised) · sinput stringdemo onlysource: "demo only"
#property lines (4)
  • copyrightProEA Lab (example)
  • linkhttps://proea.app/open/mt5
  • version1.00
  • descriptionExample EA for the MT5 file opener: shows how inputs become a .set file.

Next step

Compile it, then attach it

Open it in MetaEditor (F4 in MT5) and press F7; the .ex5 it builds appears in Navigator. Drag that onto a chart and switch on Algo Trading.

Trades rejected once it runs? Look up the return code.

Know someone stuck with an .ex5 or a .set?

Sell EAs? The install note for your buyers. The example files are ours; the example EA compiles in MetaEditor with 0 errors and places no trades. The .mq4 example is written for MT4 and wasn't compiled here: MT4 isn't installed on our machine.

· 4 min readUpdated

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, and each code has its own page in the MT5 error code lookup):

  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. Not sure which you have? Open the file in your browser: it names each type and its folder, and nothing is uploaded. 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

Monte Carlo Backtesting: One Trading System, 10,000 Simulated Paths

A worked bootstrap example using 24 separate MT5 monthly backtests with generated ticks. We show the inputs, 10,000 synthetic paths, sensitivity to one extreme month, and why these calculations cannot establish live returns or a probability of success.

Jul 10 · ProEA Lab

Thousands of thin glowing equity threads fanning out from a single dark origin point, a few threads rose-red and falling, most emerald and rising to different heights — poster titled One System. 10,000 Years.

Do Forex EAs Actually Work? Grid Risk, AI Bots and a Pre-Buy Test

An EA automates a set of rules; it doesn't supply an edge, and no representative dataset says what share of EAs work. Here is why EAs fail, why grid and martingale robots look safest just before they aren't, five checks for an AI trading bot, and a four-step test to run before you pay.

Jun 11 · ProEA Lab

A trader climbing a glowing emerald staircase of blocks and gold coins that ends at a cliff edge where the steps crumble into the void, with looming robots behind.

AI Found a Winner.

Test ten thousand strategies and one will look brilliant by pure luck. AI tests ten thousand before lunch. Here is the test quant funds run — and retail skips — that tells a real edge from a coincidence.

Jun 3 · ProEA Lab

A small child reaches up toward a single dazzling green crystal of light, surrounded by towering green-eyed machines and their reaching hands — the one alluring winner that lures you out of thousands of tries.