Skip to content
← All posts

Forex EAs and Tools

How to Install EA in MT5: Add Expert Advisors and Indicators Step by Step

EABuild Team · · 10 min read

How to Install EA in MT5: Add Expert Advisors and Indicators Step by Step – EABuild

If you have just downloaded an expert advisor and want to know how to install EA in MT5, the process is short once you know where each file belongs. This guide walks through the data folder, the Experts and Indicators folders, the Algo Trading switch, DLL imports and attaching the file to a chart. It is a general guide for MetaTrader 5 and does not cover the settings of any single product.

What you need before you start

You need a working copy of MetaTrader 5 on a Windows computer or a VPS, and a trading account, ideally a demo account. If you do not have the platform yet, the MetaTrader 5 download page lists the installers. Your broker may also offer its own build of the same platform.

You also need the file you bought. Every product on this site is a digital download, usually a ZIP archive. Unzip it first, so you can see the individual files. Depending on the product, you may find:

  • a compiled EA file with the extension .ex5, which is the file MetaTrader 5 runs;
  • a compiled indicator, also an .ex5 file;
  • set files with the extension .set, which are saved lists of input settings you load in MetaTrader;
  • a PDF guide or helper files, when the listing says the package includes them;
  • source code with the extension .mq5, which must be compiled in MetaEditor before it can run.

Read the product page first. It tells you which files are in the package, which symbol and timeframe the product is listed for, and whether it needs special platform options.

Where MetaTrader 5 keeps its files

MetaTrader 5 does not read files from the folder where you unzipped them. It reads them from its own data folder, and every installation has a separate one. Programs you add must go there, or the platform will not see them.

The easiest way to open it is from inside the platform. Choose File, then Open Data Folder. A file window opens, and you will see a folder named MQL5. Inside it are the subfolders you need:

  • Experts holds expert advisors (EAs), the programs that trade automatically once attached to a chart.
  • Indicators holds indicators, which draw signals or levels on a chart and do not place trades by themselves.
  • Presets is a convenient place for set files, because the Load button in the inputs window opens there.
  • Scripts holds one-time scripts, which this guide does not use.

If you run two MetaTrader 5 terminals, for example one for a demo account and one for a live account, repeat the steps in each of them. Opening the data folder from the correct window avoids copying files into the wrong installation.

How to install an EA in MT5, step by step

Follow these steps in order. They work for a compiled EA. Indicators use the same method with a different folder, which the next section explains.

  1. Close or keep the platform open. You can add files while MetaTrader 5 is running. Closing it is not required.
  2. Unzip the download. Extract the archive to any folder, such as your Downloads folder.
  3. Open the data folder. In MetaTrader 5 choose File, then Open Data Folder, and open MQL5, then Experts.
  4. Copy the EA file. Copy the .ex5 file into the Experts folder. If the package has helper files, place them as the product page or the PDF guide describes. A subfolder inside Experts is fine for keeping files tidy.
  5. Copy the set files. Put the .set files into the Presets folder, or any folder you will remember.
  6. Refresh the Navigator. Press Ctrl+N to open the Navigator panel. Right-click Expert Advisors and choose Refresh. Restarting the platform has the same effect.
  7. Open the right chart. Open a chart of the symbol and timeframe the product is listed for. Use the Market Watch window to add the symbol if you cannot see it.
  8. Attach the EA. Drag the EA from the Navigator onto the chart, or double-click it. The properties window opens.
  9. Allow algorithmic trading. On the Common tab, tick Allow Algo Trading. Tick DLL imports only if the product page says the file needs them.
  10. Load a set file. On the Inputs tab, click Load and choose a set file. Check the values on screen, then click OK.

After you click OK, check that the EA name shows in the top-right corner of the chart. A grey or crossed icon there means something still blocks trading, and the checks below will help you find what.

How to add an indicator in MT5

Installing an indicator follows the same path, with two differences. The file goes into MQL5, then Indicators, and you do not need the Algo Trading button, because an indicator does not trade.

  1. Open the data folder and copy the indicator .ex5 file into MQL5/Indicators.
  2. Open the Navigator with Ctrl+N, right-click Indicators and choose Refresh.
  3. Drag the indicator onto a chart, or use Insert, then Indicators, then Custom.
  4. Adjust the inputs and colours in the window that opens, and click OK.

To remove an indicator, right-click the chart, choose Indicator List, select it and click Delete. Deleting the file from the folder does not remove it from a chart that already uses it.

Installing source code

If you bought source code, the .mq5 file goes into the same Experts or Indicators folder. Open MetaEditor with F4, open the file and press F7 to compile it. A successful compile creates the .ex5 file next to it. Check the Errors tab for messages, and note that any change you make to the code is your own responsibility.

The Algo Trading button, DLL imports and other platform options

Most installation problems come from options, not from the files. MetaTrader 5 has two levels of control, and both must allow trading for an EA to open orders.

The Algo Trading button

The toolbar has a button named Algo Trading. When it is green, automated trading is on for the whole terminal. When it is red, no EA can trade, even if every other setting is correct. Click it once to switch it on. You can switch it off at any time to stop all EAs at once.

Options under Tools

Open Tools, then Options, then the Expert Advisors tab. Here you can allow or block algorithmic trading and decide whether EAs may import DLLs. A DLL is an external code library that an EA can call. Allow DLL imports only when a product's listing states that it needs one, and only for files you trust. Several EAs in this shop list DLL as not required, so for those the box can stay unticked.

Account and broker limits

Some accounts restrict automated trading, and some brokers use different symbol names, such as a suffix after XAUUSD. If the symbol on your chart has another name, the EA may refuse to run on it. Check the product page for the symbols it is listed for, and ask your broker whether your account allows expert advisors.

Account type matters too. MetaTrader 5 accounts can be netting or hedging. Hedging means buy and sell positions on the same symbol can be open at once, so check that your account type allows it when a strategy uses it.

What the product pages tell you before you install

Every EA has its own symbol, timeframe and files, so the installation steps are the same but the chart you attach it to is not. The product pages list these details, and a few examples show how to read them.

Mad Turtle EA for MT5 is listed for XAUUSD on the H1 and M15 timeframes, with one compiled EA file and 7 set files. Its strategy is scalping with a grid and martingale. A grid strategy opens extra orders at set price steps, and martingale increases the lot size after a loss, so drawdown can rise quickly when price moves against the position.

Goldex AI EA for MT5 is listed for XAUUSD on M5. The package holds a compiled EA, 3 set files and a PDF guide, so read the guide after you install the EA. Its strategy mixes hedging, martingale and news trading.

Smart Gold Hunter EA for MT5 is listed for XAUUSD on M5 and M15, with 3 compiled files and 6 set files. When a package has several compiled files, check the product page for where each one goes.

Straddle EA for MT5 is a breakout and grid EA listed for XAUUSD on M15, with 2 compiled files and 8 set files. Perceptrader AI EA for MT5 is listed for four forex pairs, NZDUSD, USDCAD, AUDNZD and AUDCAD, on M5, with 12 set files. A chart can run only one EA at a time, so a listing with several symbols is a reason to read the product page and PDF guide before you attach anything.

Each set file is a starting configuration, not a recommendation of results. Compare its values with your own account size and the recommended minimum deposit on the product page.

Checks after installing

Once the EA is on the chart, confirm that it is working before you trade with real money.

  • Look at the top-right corner of the chart. The EA name should show there, and Algo Trading should be on, both in the toolbar and in the EA's own properties.
  • Open the Experts tab. Press Ctrl+T to open the Toolbox, then open the Experts tab. It prints a line when the EA loads and any error it meets.
  • Open the Journal tab. It records platform events, such as failed logins or rejected orders.
  • Check the Inputs tab. Right-click the chart, choose Expert Advisors, then Properties, and confirm the loaded values.
  • Check the market. The EA cannot open trades while the market is closed or when the symbol is not tradable on your account.

Common problems

  • The EA is not in the Navigator. The file is probably in the wrong folder, or in another terminal's data folder. Open the data folder from the window you are using, copy the file again and refresh.
  • The EA name is missing or the icon is crossed. Turn on the Algo Trading button, then open the EA properties and tick Allow Algo Trading.
  • The Experts tab says the file cannot be loaded. The archive may have been unzipped incompletely, or an MT4 file was placed in MT5. MT4 files end in .ex4 and do not run in MT5.
  • The EA runs but never trades. Check the symbol name, the timeframe, the lot size limits of your account and the spread. Many EAs wait for their own conditions before they open a trade.
  • The set file will not load. Make sure the file ends in .set and was built for the same EA. A set file from another EA will not match its inputs.

Run the EA on a demo account first and check the settings before you trade live. A demo account lets you confirm that the files, the options and the chart are all correct without risking real money. For platform questions beyond this guide, the MetaTrader 5 help pages describe every menu in detail.

Where to find compatible files

You can browse the full catalogue of expert advisors, or open all products to include indicators and source code. Every product is also included in the membership, which gives you access to the whole catalogue. Install each file the same way, and read its product page before you attach it to a chart.

Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.

Tags: MT5 Installation, Expert Advisors

← All posts

Get every EA with membership

313 products · from $16.59/month

See plans

More in Forex EAs and Tools