To install an EA on MT5 manually, open the platform's data folder, place the Expert Advisor files in MQL5\Experts, compile the source file if you received an MQ5 file, then attach the EA to a chart from the Navigator. After that, automated trading must be permitted both at the platform level and for that individual EA before it can send orders. An MT5 EA, short for Expert Advisor, is an MQL5 application that can analyze market data and automate trading rules.

The safest installation method starts from File > Open Data Folder inside the exact MetaTrader 5 terminal you plan to use. This avoids a common problem: copying an EA into the installation directory or into the data folder of a different MT5 instance. MetaTrader's official documentation confirms that Expert Advisors belong in MQL5\Experts and that MQ5 source code must be compiled into an executable EX5 file before the terminal can run it. See the MetaTrader 5 Help guide to MQL5 applications.

What you need before installing an MT5 EA

First identify what files you actually received. A typical EA download may contain only an executable EX5 file, only an MQ5 source file, or a package containing the EA plus supporting libraries and configuration files. Do not assume every file should be placed in the Experts folder. If the developer supplied a folder structure, preserve that structure because the EA may refer to other files by relative location.

File type What it is What to do
EX5 Compiled MT5 executable Place it under MQL5\Experts and run it from the Navigator
MQ5 MQL5 source code Place it under MQL5\Experts and compile it in MetaEditor
SET Saved EA input parameters Load it from the EA Inputs tab when needed
DLL External Windows library used by some EAs Use only when required and only if you trust the source

An EA built for MetaTrader 4 is not a drop-in replacement for an MT5 EA. Files such as EX4 and MQ4 are intended for the MT4 environment. For MetaTrader 5, use an EA supplied as EX5 or MQ5 code designed for MQL5. If a seller provides both MT4 and MT5 downloads, choose the MT5 package.

Before installing third-party code, confirm where it came from and what permissions it requires. An EA can be allowed to send trades automatically. Some EAs also request DLL access or network access through WebRequest. Those permissions expand what the program can do. Do not enable them simply because an installation guide tells you to tick every box. Only grant the permissions that the specific EA needs and that you understand.

How to install EA on MT5 step by step

  1. Open the correct MT5 terminal. If you have terminals from several brokers or multiple installations on the same computer, launch the exact one in which you want the EA to appear.
  2. Open the data folder. In MT5 choose File > Open Data Folder. This is more reliable than guessing a Windows or macOS file path because the terminal can use a separate data directory.
  3. Open MQL5 and then Experts. The destination for an Expert Advisor is the MQL5\Experts folder. You can create a subfolder for the EA if you want to keep several robots organized.
  4. Copy the EA files. Put the EX5 or MQ5 EA file in the Experts folder or in the developer's supplied subfolder. If the package includes other directories such as Libraries or Files, follow the supplied structure rather than moving everything into Experts.
  5. Compile an MQ5 file when necessary. If you only received source code, press F4 in MT5 to open MetaEditor. Open the MQ5 file and press F7 to compile it. Successful compilation creates an EX5 executable. If MetaEditor reports errors, the EA is not ready to run until those errors are fixed.
  6. Return to MT5 and locate the EA. Open the Navigator with Ctrl+N if it is hidden. Look under Expert Advisors. If the newly copied program does not appear, refresh the relevant Navigator section when available or restart the terminal.
  7. Open the chart the EA should control. Select the intended symbol and timeframe. These choices matter when the EA's logic uses the chart symbol or chart period.
  8. Attach the Expert Advisor. Drag the EA from the Navigator onto the chart or double-click its name. MT5 opens the EA properties window before starting it.
  9. Review permissions and inputs. Check the Common or permissions settings and the Inputs tab. Use the developer's documented parameters rather than guessing values. If you have a SET preset, load it here and verify that the values match the intended symbol and account conditions.
  10. Enable automated trading only when ready. Turn on the platform's automated trading control and make sure automated trading is also allowed for this individual EA. Then confirm that the EA is attached and review the Experts and Journal logs for startup errors.

MetaTrader 5 officially supports starting an Expert Advisor by dragging it from the Navigator to a chart or by double-clicking it. The platform opens the EA properties first and lets you control its trading permission separately. The official Expert Advisors and Custom Indicators guide also notes that only one Expert Advisor can run on a single chart at a time. If you need two robots on the same symbol, open separate chart windows and attach one EA to each chart.

How the MT5 Algo Trading button works

The MT5 Algo Trading button is the platform-wide gate for automated trading. Depending on the interface build or labeling, you may see the automated trading control referred to as Algo Trading or AutoTrading. Its function is broader than the permission inside one EA. When platform-level automated trading is disabled, an Expert Advisor may remain attached and continue processing data, but it is not allowed to execute trades through the normal EA trading permission.

There are therefore two permission layers to check. The first is the global platform setting. You can control it from the toolbar and from Tools > Options > Expert Advisors. The second is the permission for the individual EA attached to a chart. Both must allow trading if the EA is expected to place orders. This separation is useful because you can stop all robots globally without removing them from their charts, or you can keep global automation enabled while disabling one specific EA.

MT5 also has protective options that can disable automated trading after actions such as switching accounts or changing profiles. These settings are useful when you want to reduce the chance of a robot resuming unexpectedly after a context change. If an EA was working and suddenly stops after you log into another account, check these platform options before reinstalling the program.

What to check before allowing live trades

Installing an EA correctly only proves that MT5 can load it. It does not prove that the strategy is suitable for your account or that its assumptions match your broker's trading conditions. Before using an EA with real money, verify the symbol names it expects, supported timeframes, minimum lot rules, stop-distance requirements, account type and any dependencies documented by its developer.

Use the Strategy Tester before live deployment when the EA supports normal testing. MetaTrader 5's Strategy Tester can run an Expert Advisor on historical data and can also optimize different input combinations. The official Strategy Testing documentation describes testing as a way to evaluate an EA on history before live use. A backtest can reveal coding problems and strategy behavior under selected assumptions, but it does not guarantee future returns or reproduce every live execution condition.

  • Start with a demo account. Confirm that entries, exits, stop losses and position sizing behave as intended under live price updates.
  • Check the Inputs tab. A valid installation with incorrect risk parameters can still create unwanted exposure.
  • Confirm the symbol. Broker-specific suffixes or prefixes can matter if the EA expects an exact symbol name.
  • Check the timeframe. Some EAs read the current chart period while others use a fixed internal period.
  • Review the logs. The Experts and Journal tabs often show initialization failures, trade rejections, missing resources or permission problems.
  • Understand external access. If the EA needs DLL imports or WebRequest URLs, verify why before enabling them.

Why an Expert Advisor does not appear in Navigator

If the EA does not appear under Expert Advisors, the problem is usually related to location or compilation. Reinstalling MT5 is rarely the first useful step. Work through the file path and file type before changing the platform itself.

Symptom Likely cause What to check
EA is missing from Navigator File copied to the wrong terminal or wrong folder Use File > Open Data Folder and confirm MQL5\Experts
MQ5 file exists but EA cannot run Source has not compiled successfully Compile in MetaEditor with F7 and check the error list
EA appears in a different MT5 installation Multiple terminal data folders are present Repeat installation from the intended terminal's data folder
EX4 or MQ4 file is not recognized as an MT5 EA It is an MT4 program Obtain an EX5 or MQ5 version built for MetaTrader 5
EA package is incomplete Required libraries or resources were not copied Restore the developer's original folder structure

If you compiled an MQ5 file and MetaEditor reports errors, focus on the first genuine compile error rather than the number of messages. One missing include file or incompatible function can trigger many follow-on errors. A successful build should create an EX5 file in the corresponding program directory. If the source depends on custom include files or libraries, those dependencies must also be present in the expected MQL5 folders.

Why an MT5 EA is installed but not trading

An EA that appears in Navigator and attaches to a chart is installed. If it does not open trades, treat that as a runtime or permission issue rather than an installation issue. First check whether global automated trading is enabled and whether the EA itself has permission to trade. Then check the logs for a specific message.

Do not assume that no trade means the EA is broken. A correctly running strategy may simply have no valid entry signal. It may also be waiting for a new bar, a certain spread level, a trading session or another condition written into its rules. Compare what the EA is doing with its documentation before forcing settings or changing the code.

Account authorization matters as well. An investor password can provide read-only access to an account and does not provide normal trading rights. Broker-side restrictions can also reject orders even when the EA has permission inside MT5. The Journal and Experts logs help separate these cases because they record platform messages and EA output around initialization and order attempts.

Another common cause is an external dependency. An EA may expect a DLL, an allowed WebRequest address, a custom indicator, a data file or another MQL5 library. Granting every external permission is not a good troubleshooting shortcut. Identify the missing dependency first. MetaTrader warns that DLL imports can be potentially dangerous because an external library operates outside the normal MQL5 sandbox. Enable DLL access only for software and libraries you trust.

How to run more than one MT5 EA

MT5 allows multiple Expert Advisors to operate at the same time, but each chart can host only one EA. To run two EAs on EURUSD, for example, open two EURUSD charts and attach one EA to each. The charts can use the same timeframe or different timeframes depending on the strategy requirements.

If you want to run the same EA with two parameter sets, attach it to two separate charts and configure each instance independently. Pay attention to how the EA identifies its own positions. Well-designed multi-instance systems often use an internal identifier such as a magic number. If two instances use the same identifiers and the code manages positions broadly, they may interact with each other's trades. Follow the EA developer's instructions for separating instances.

Also remember that closing MT5 stops locally running EAs. If a strategy is supposed to operate continuously, the terminal environment must remain running and connected or the EA must be hosted in a suitable always-on environment. Installation alone does not make the strategy operate when the desktop terminal is offline.

How to update or remove an Expert Advisor

Updating an EA is safest when you stop the running instance first. Remove the Expert Advisor from its chart or disable automated trading before replacing its executable. Then open the active data folder again and replace the relevant files in the same MQL5 directory structure. If the update includes MQ5 source code, compile the new source in MetaEditor and confirm that the replacement EX5 file is created without errors.

Do not assume an update preserves every setting. Save the current input parameters to a SET file when the EA provides a configuration you may want to restore. After installing the new version, attach it again and review the Inputs tab instead of loading an old preset blindly. Developers can add, remove or reinterpret parameters between versions, so an older preset may no longer represent the intended behavior.

To remove an EA from active use, detach it from the chart. If you also want it removed from the Navigator, delete its program files from the corresponding MQL5\Experts folder and refresh the program list or restart MT5. Removing the file is different from disabling trading. A disabled EA can remain attached and continue running non-trading logic, while a removed EA is no longer active on that chart.

A clean installation checklist

  • The file is an MT5 EA in EX5 or MQ5 format.
  • The files were placed through the active terminal's File > Open Data Folder path.
  • The main EA is under MQL5\Experts.
  • Any required supporting folders were copied without breaking their structure.
  • MQ5 source code was compiled successfully into EX5 when required.
  • The EA appears under Expert Advisors in Navigator.
  • The EA is attached to the correct chart and timeframe.
  • Input parameters were reviewed before startup.
  • The platform-level Algo Trading or AutoTrading control permits automated trading.
  • The individual EA is also allowed to trade.
  • DLL imports and WebRequest access are enabled only when required and trusted.
  • The Experts and Journal logs show no unresolved startup errors.
  • The EA has been tested on historical data and preferably observed on a demo account before real-money use.

For most users, the essential path is simple: File > Open Data Folder > MQL5 > Experts, then compile if needed, attach the EA from Navigator and enable the correct automated trading permissions. When something fails, separate the problem into three stages: installation, attachment and trade permission. That distinction makes MT5 EA troubleshooting much faster than repeatedly copying files or reinstalling the terminal.