GoldTriEngine
EA Education

How to Install an Expert Advisor (EA) on MetaTrader 5, Step by Step

To install an EA on MetaTrader 5, copy its .ex5 file into the MQL5 > Experts folder (File > Open Data Folder), restart MetaTrader or refresh the Navigator, drag the EA onto a chart, tick Allow Algo Trading, and switch on the Algo Trading button in the toolbar. A smiley face in the chart corner shows it is running.

YeliasPublished 26 November 20262 min read

Before you start

  • You need MetaTrader 5 on Windows (a PC or a Windows VPS). Phones cannot run Expert Advisors, and MT4 uses a different file type.
  • The EA file ends in .ex5. A file ending in .mq5 is source code, and an .ex4 file is for MetaTrader 4.
  • Keep MT5 logged in to the account you want to trade, and test on a demo account first.

The steps

  1. In MetaTrader 5 choose File > Open Data Folder. A Windows folder opens.
  2. Open MQL5, then Experts, and paste the .ex5 file there.
  3. Back in MetaTrader, open the Navigator panel (Ctrl+N), right-click Expert Advisors and choose Refresh. The EA appears in the list. Restarting MetaTrader does the same.
  4. Open a chart of the symbol the EA is made for (for example XAUUSD) and set the timeframe the EA asks for.
  5. Drag the EA from the Navigator onto the chart. A settings window opens.
  6. On the Common tab tick Allow Algo Trading. On the Inputs tab check the settings the seller recommends, then press OK.
  7. Make sure the Algo Trading button in the top toolbar is green. Without it, no EA trades.

How to tell that it is working

  • A smiley face in the top-right corner of the chart means the EA is attached and allowed to trade. A sad face means trading is off.
  • Open the Experts tab at the bottom of the terminal. It shows what the EA says when it starts and any errors.
  • If the EA needs a license key, the Experts tab tells you when the key was accepted or refused.

Frequently asked questions

Where is the Experts folder in MT5?

In MetaTrader 5 choose File > Open Data Folder, then open MQL5 and Experts. Files placed there appear in the Navigator after a refresh.

Why does my EA show a sad face?

The Algo Trading button in the toolbar is off, or Allow Algo Trading is not ticked in the EA settings. Switch both on.

Can I install an EA on my phone?

No. MetaTrader mobile apps cannot run Expert Advisors. You need MetaTrader 5 on Windows, on your own computer or a Windows VPS.

Does the EA keep trading if I close MetaTrader?

No. The EA runs inside MetaTrader 5, so it stops when the program closes or the computer shuts down. A VPS keeps it running.

Sources and method

  • General market conventions and MetaTrader 5 behaviour. Brokers differ in server time, contract size and trading hours, so always check your own broker's contract specification. Examples use made-up round numbers.
Y

Yelias, GoldTriEngine. We trade gold with an automated EA and publish every trade in public. Everything here is built from that live data. See the live account or the EA.

Not financial advice. This is education and research, not a recommendation to buy or sell anything. Trading gold and CFDs carries a high risk of loss, and past results, back-tests and forecasts do not guarantee future results. Read our risk disclaimer. Numbers in this article are computed by our own software from our own price data and trading account; drafting is assisted by AI. Written under the name Yelias.
Contact us