METATRADER · 6 MIN READ

How to install an expert advisor in MT5

To install an EA in MT5, copy the file into the MQL5\Experts folder, refresh the Navigator, drag the EA onto a chart and turn on both Algo Trading switches. None of the five steps is hard, and the two switches are the ones people miss.

The five steps to install an EA in MT5

These steps cover a standard EA file, either a compiled .ex5 or .mq5 source. (Tech Kick Bot is not one: it ships as a Windows application that talks to the terminal, so its setup guide replaces steps one and two.)

1. Put the file where MT5 looks. In the terminal: File, then Open Data Folder, then MQL5, then Experts. Copy the .ex5 there. This data folder is the one that counts, and the Program Files install directory is not. Copying to the wrong one is why a freshly bought EA is not in the Navigator.

2. Refresh the Navigator. Right-click Expert Advisors in the Navigator panel (Ctrl+N if it is hidden) and choose Refresh, or restart the terminal. The EA should appear under Expert Advisors.

3. Attach it. Open a chart of the symbol and timeframe the EA is built for, then drag the EA from the Navigator onto it. A settings dialog opens.

4. Tick "Allow Algo Trading" in that dialog, on the Common tab. This is the permission for this one EA, it is off by default on many builds, and skipping it gives you an EA that draws on the chart and never trades.

5. Turn the Algo Trading button in the toolbar green. This is the master switch for every EA in the terminal. Steps four and five must both be on, and either one alone trades nothing. If the button will not stay on, see AutoTrading disabled.

How to know the EA is actually running

  • The chart shows the EA name in the top-right corner with a smiling face (older builds) or a small hat icon. No icon means it is not attached; a sad or grey face means it is attached but not allowed to trade. See no smiley face.
  • The Experts tab of the Toolbox logs a start-up line from the EA within seconds of attaching.
  • The Journal tab shows the terminal granting it trade permission instead of refusing it.

Running and trading are different things. A correctly installed, fully enabled EA can wait for days for its conditions. Before reinstalling anything, work through expert advisor not working, which orders the real causes by likelihood.

The usual install failures, in order

Nearly every failed install ends up in one of four places. The file is in the wrong folder, so the Navigator cannot see it. The EA appears but greyed out, because it is an indicator, a broken download or an MT4 file in an MT5 terminal. It attaches, but one of the two Algo Trading switches is off. Or it runs and has no setup to trade yet.

The MT4 case needs one more sentence. The .ex4 and .ex5 formats belong to different platforms, neither loads in the other, and marketplaces still sell plenty of both. Check which terminal the EA was built for before blaming the install. See MT4 vs MT5.

Making the EA survive restarts

An attached EA stays attached through a normal terminal restart, settings included, but Windows updates, crashes and profile switches can all detach it without warning. The reasons and fixes are at EA not running after restart.

If the EA is meant to trade unattended, the machine it lives on matters as much as the install: a desktop that sleeps overnight is a stopped EA. That is the real case for a VPS, and the guide is worth reading before you pay for one.

Common questions

How do I add an expert advisor to MT5?

Copy the .ex5 file into the terminal data folder under MQL5\Experts (File, then Open Data Folder), refresh the Navigator, drag the EA onto a chart, tick Allow Algo Trading in its settings, and turn the Algo Trading toolbar button green. You need both switches on.

Where is the MT5 data folder?

In the terminal: File, then Open Data Folder. Windows hides it under AppData with a hashed folder name, so finding it by hand is slow. The menu item always opens the folder that belongs to the terminal you clicked it in.

Why does my EA not show up in the Navigator?

Wrong folder, a Navigator that has not been refreshed, or the wrong format. The file must sit in MQL5\Experts inside the data folder, the Navigator needs a right-click Refresh or a terminal restart to see new files, and an .ex4 file is an MT4 program that will never appear in MT5.

How do I install an EA on a VPS?

The same way. The VPS is a Windows machine you reach over Remote Desktop: install the terminal there, copy the EA into that installation's data folder, and turn on both Algo Trading switches there. Settings do not carry over from your home terminal by themselves.

Keep reading

See the gold bot →Free tools

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-25.