How to Install EA in MT4: Add Expert Advisors and Indicators Step by Step
EABuild Team · · 10 min read

This guide shows how to install EA in MT4, step by step, for both expert advisors and custom indicators. It covers where MetaTrader 4 keeps its files, how to copy a download into the right folder, how to switch on automated trading and how to attach the file to a chart. The steps are generic, so they apply to any MT4 download that comes as compiled files.
What you need before you start
Have these ready before you open MetaTrader 4:
- MetaTrader 4 installed and logged in to a demo or live account. If you do not have the platform yet, the MetaTrader 4 site has the download for Windows.
- The product download, usually a ZIP archive. Unzip it first so you can see the individual files.
- A demo account for the first run. Test every new file there before you attach it to a live account.
It also helps to know what the file extensions mean. A compiled MT4 program ends in .ex4. Editable source code ends in .mq4 and has to be compiled in MetaEditor before MetaTrader can run it. A set file ends in .set; it is a saved list of input settings that you load from the EA's inputs window. A .dll file is a helper library that some programs call from outside MetaTrader.
Expert advisor or indicator: which folder
MetaTrader 4 sorts programs by type, and each type has its own folder inside the data folder.
| File type | What it does | Folder inside MQL4 |
|---|---|---|
| Expert advisor (.ex4) | Trades automatically once attached to a chart with automated trading enabled | Experts |
| Custom indicator (.ex4) | Draws signals or levels on the chart | Indicators |
| Script (.ex4) | Runs one action and stops | Scripts |
| Helper library (.dll) | Supports a program that calls it | Libraries |
| Set file (.set) | Stores input settings for an EA or indicator | Any location; you pick it with the Load button |
An indicator does not place trades by itself. An expert advisor does, so it needs the extra steps for automated trading later in this guide.
How to install an EA or indicator in MT4, step by step
- Unzip the download. Extract the archive to a normal folder on your computer, such as your Downloads folder. Open it and look at the file names and extensions.
- Open the data folder from inside MT4. In MetaTrader 4, click File and then Open Data Folder. A file window opens. Always use this menu entry rather than searching for the folder yourself, because every MT4 installation keeps its data in a different place, and a broker's build may use its own folder.
- Open the MQL4 folder. Inside the data folder you will see a folder called MQL4. Open it. You will see the sub-folders Experts, Indicators, Scripts, Libraries, Include and others.
- Copy the EA file into Experts. Copy the compiled .ex4 expert advisor into MQL4\Experts. If the download has several compiled files, check the file names and the product page, because some EAs need an extra helper file next to the main one.
- Copy an indicator into Indicators. For a custom indicator, copy its .ex4 file into MQL4\Indicators instead.
- Copy any library file. If a download includes a .dll, place it in MQL4\Libraries only when the product listing says it needs one.
- Refresh the Navigator. Back in MetaTrader 4, press Ctrl+N to open the Navigator panel. Right-click inside it and choose Refresh. If the new file does not appear, close MT4 completely and open it again.
- Find the file. In the Navigator, expand Expert Advisors or Custom Indicators. The name of your file should be in the list. If it is not, go to the common problems section below.
Allow automated trading
An expert advisor can trade only when the platform allows it. This is a setting you check once for the platform and once for each EA.
Platform options
- Click Tools and then Options, and open the Expert Advisors tab.
- Tick Allow automated trading.
- Tick Allow DLL imports only if the product you are installing uses a DLL and its listing says so. Leave it unticked otherwise, because a DLL is code that runs outside MetaTrader's own sandbox.
- Click OK.
The AutoTrading button
The toolbar has an AutoTrading button. When it is pressed (green), expert advisors on your charts may trade. When it is off (red), they stay idle. Switching it on is the usual reason an EA starts to act, so make a habit of checking it before you leave a chart running.
Attach the file to a chart
Now put the program on a chart. The same method works for an EA and for an indicator.
- Open the symbol and timeframe the product is designed for. Each product page lists them, for example XAUUSD on M5 and M15. Open a chart through File, New Chart, and choose the symbol. Use the timeframe buttons on the toolbar for M1, M5, M15 and so on.
- In the Navigator, find the file. Drag it onto the chart, or double-click it.
- A settings window opens. For an EA, open the Common tab and tick Allow live trading. Add Allow DLL imports there only if the listing says the product needs it.
- Open the Inputs tab. Here you can change the settings by hand, or click Load and choose a set file from the download. A set file is a starting configuration, not a promise of any result.
- Click OK.
For an indicator, the settings window has a Colors tab and an Inputs tab. After you click OK, the indicator appears on the chart or in a window below it. You can also add one from the Insert menu, then Indicators and Custom.
Check that it is running
Look at the top right corner of the chart. A smiling face next to the EA name means that the EA is attached and allowed to trade. A face with a cross or a sad face means that something still blocks it, usually the AutoTrading button or the Allow live trading box. The Experts tab at the bottom of the terminal window also logs messages from the EA, including start-up errors, so read it after you attach a file.
Examples from the shop catalogue
The steps above work the same way for the MT4 products we sell. Each one is a download you install yourself, and the details below come from the product listings. Read the listing of any product you install, because symbols, timeframes and files differ.
- The Gold Scalping EA for MT4 is a scalping and breakout expert advisor listed for XAUUSD on M5 and M15. The listing says the package has an EA file, one helper file and one set file.
- The HFT Gold EA for MT4 is a scalping expert advisor listed for XAUUSD and BTCUSD on M1. Its package has an EA file and two helper files.
- The Volume Scalper EA for MT4 uses scalping and breakout logic and is listed for XAUUSD, GBPUSD and EURUSD on M1 and M5. The download has one EA file and four set files.
- The Orion Gold Scalper EA for MT4 is designed for XAUUSD on M1 and M5, and the listing names MetaTrader 4 build 1476 or later. It comes with an EA file, three helper files and four set files.
- The Night Hunter Pro EA for MT4 is listed for EURUSD, GBPUSD, EURCHF and USDCAD on M5, with build 1471 or later. The listing states that its strategy includes martingale (increasing the lot size after a losing trade), so check its settings with extra care. It comes as one compiled EA file with nine set files.
The listings for these five state that no DLL is needed, so you can leave Allow DLL imports unticked for them. Where a listing names a minimum build, open Help and About in MT4 to see your build number. If it is lower, update the platform first.
Where the helper files go
When a package contains helper files next to the main EA, do not guess. Look at their extensions and names. A second .ex4 usually belongs in the same Experts folder unless the product page says otherwise. If a file has no clear destination, keep it with the EA and follow the notes in the listing. Set files do not need to be copied into MetaTrader at all, since the Load button in the inputs window can open them from wherever you saved them.
Common problems and how to fix them
The file does not appear in the Navigator
- You copied it into a different MT4 installation. Use File then Open Data Folder from the terminal you are running.
- You copied it into the wrong sub-folder, such as an indicator in Experts. Move it to the folder that fits its type.
- You did not refresh the Navigator or restart MT4.
- The file is a .mq4 source file that has not been compiled. Open it in MetaEditor, press F7 to compile, and then refresh the Navigator.
The EA is attached, but nothing happens
- The AutoTrading button is off. Press it so that it turns green.
- Allow live trading is not ticked in the EA's Common tab.
- The chart is on a different symbol or timeframe than the product is designed for.
- The market is closed, or the connection indicator in the bottom right corner shows that the terminal is offline.
- Your broker adds a suffix to symbol names, such as XAUUSD.m. Open the EA on the chart of the symbol your broker offers, and read the inputs for any symbol name setting.
The EA reports an error in the Experts tab
Read the message. A message about a DLL means the DLL option needs to be allowed, and only if the product uses one. A message about a missing file means a helper file is not in the folder the EA expects. A message about an old build means you should update MetaTrader 4. If the text is unclear, remove the EA from the chart (right-click the chart, choose Expert Advisors and then Remove) and attach it again.
The settings reset after a restart
Inputs belong to a chart. If you close a chart without a saved template, the settings go with it. To keep a chart setup, right-click the chart, choose Template and then Save Template.
Before you trade live
Installing a file only makes it available. It does not tell you how the strategy behaves. Run each new EA on a demo account first and watch how it opens, manages and closes orders. Check the lot size, the spread your broker charges and any inputs that limit risk. Keep in mind that an EA runs only while MetaTrader 4 is open and connected, so a computer that sleeps or loses its connection stops it.
If you want to try several programs, every product in the shop is included in the membership. You can also browse the full expert advisor catalogue and install each download with the steps in this guide.
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: MT4 Installation, Expert Advisors

