···
GUIDES

How to Install and Run an Expert Advisor (EA) in MT5

Thatri.ch · November 12, 2026
Home › Guides

An Expert Advisor (EA) is a program that runs inside MetaTrader 5 and can open and close trades according to predefined rules. This guide walks you through installing an EA in MT5 and checking that it is running.

Important: This page is for technical information only and is not investment advice. Leveraged trading carries a high level of risk and you can lose all of your capital. No automated system can determine the outcome in advance. Always test a new EA on a demo account first.

Before you start

Step 1: Open the data folder

In MT5, click File → Open Data Folder. In the window that opens, go into the MQL5 folder.

Step 2: Copy the file to the right folder

If you have more than one MT5 installed, each has its own data folder. Make sure you copy the file into the folder of the terminal that will run the EA.

Step 3: Refresh the list

Press Ctrl+N to open the Navigator panel. Right-click Expert Advisors and choose Refresh. If the EA still does not appear, close MT5 and open it again.

Step 4: Enable algo trading

Step 5: Attach the EA to a chart

  1. Drag the EA from the Navigator onto the chart (or double-click it).
  2. On the Common tab, make sure the option allowing algo trading is ticked.
  3. On the Inputs tab, review the EA's parameters. Do not use the default values on a live account until you understand them.
  4. Click OK.

Step 6: Check that it is running

Common problems

SymptomLikely cause and fix
The EA is not in the NavigatorWrong folder, the list was not refreshed, or the file is for MT4. Check steps 2 and 3.
No EA icon on the chart, or it is crossed outAlgo Trading is off. Turn the toolbar button green.
"trade is disabled" or similar error in the Experts tabYou may have logged in with the investor password, or EA trading may not be permitted on the account or by the broker.
"Not enough money" / "Invalid volume"The lot size does not fit the balance or the symbol's minimum/maximum volume. Correct the lot in the Inputs.
The EA never opens tradesThe market may be closed (weekend), the EA's conditions may not have occurred, or you are using an account type (hedging / netting) the EA does not support.
The EA stops when the computer shuts downThe EA runs inside the terminal, so the terminal must stay open. For continuous operation a VPS is used.

For Thatri.ch tools

Thatri.ch MT5 indicator and EA files are installed the same way. For license and tool details see the FAQ, and for walkthroughs see the videos page.

Frequently asked questions

Can I run an EA on the MT5 mobile app?

No. The MT5 mobile app does not run Expert Advisors. EAs run on the desktop MT5 terminal, or on a terminal hosted on a VPS.

Will an EA written for MT4 work in MT5?

No. MT4 files (.ex4 / .mq4) are not compatible with MT5. You need a separate compiled .ex5 file built for MT5.

How do I change an EA's settings later?

Right-click the chart, open Expert Advisors and choose Properties (shortcut: F7). Change the parameters on the Inputs tab and click OK.

Use Thatri.ch tools for free

Thatri.ch MT5 indicators and EAs are enabled free of charge on accounts opened through one of our partner brokers.

Go to the brokers page → Partner links are affiliate links; we earn a commission on accounts opened through them. This page is not investment advice.

More guides

What Is a VPS for MT5? When You Need One and How to ChooseWhat a VPS for MT5 is, when you need one, and how to choose and set one up: RAM, CPU, location and latency, security and common problems.