Install EA on MT4: Step-by-Step Guide (2026)

Quick Answer

To install an EA on MT4: 1) Open MT4 and go to File → Open Data Folder, 2) Navigate to MQL4 → Experts, 3) Copy your .ex4 file into this folder, 4) Restart MT4 or refresh the Navigator, 5) Drag the EA onto your chart and enable AutoTrading. The entire process takes under 5 minutes.

I have installed hundreds of Expert Advisors on MT4 for traders around the world, and I can tell you that the process is straightforward once you know the exact steps. The problem is that most guides skip critical details -- like where to find the data folder, how to handle DLL files, or what to do when the EA does not appear. This guide on how to install an EA on MT4 covers everything from file placement to configuration, including every common issue I have seen traders encounter.

Before You Start

Before installing any EA on MT4, make sure you have these prerequisites in place:

  • MT4 installed and running -- Download from your broker or directly from MetaQuotes if you have not yet
  • EA files ready -- You need either an .ex4 file (compiled) or .mq4 file (source code)
  • Trading account logged in -- Demo or live, the account must be active
  • Correct instrument available -- Verify your broker offers the symbol the EA trades (e.g., XAUUSD for gold)

Understanding EA File Types

You may receive several types of files when you purchase or download an EA. Here is what each file type does:

File TypeExtensionWhere to PlacePurpose
Compiled EA.ex4MQL4/ExpertsReady-to-run EA file
Source Code.mq4MQL4/ExpertsEditable code, needs compiling
Library.dllMQL4/LibrariesExternal functions the EA uses
Include File.mqhMQL4/IncludeShared code modules
Preset.setMQL4/PresetsSaved EA settings

Step 1: Locate the MT4 Data Folder

The data folder is where MT4 stores all user files including EAs, indicators, and templates. Finding this folder is the first and most important step.

  1. Open your MT4 platform
  2. Click File in the top menu bar
  3. Select Open Data Folder
  4. A Windows Explorer window opens showing your MT4 data directory
  5. Navigate to the MQL4 folder
  6. Open the Experts subfolder

Important: Do not confuse the data folder with the MT4 installation folder (usually in Program Files). The data folder is in your user profile directory (AppData) and is where MT4 actually reads EA files from. Always use File → Open Data Folder to find the correct path.

Alternative Method: Direct Path

If you have multiple MT4 installations, the data folder path typically follows this pattern:

  • Windows: C:\Users\[YourName]\AppData\Roaming\MetaQuotes\Terminal\[HASH]\MQL4\Experts
  • Each broker installation gets a unique hash folder, so make sure you are in the right one

Step 2: Copy EA Files to the Correct Folders

With the data folder open, place each file in its designated location:

  1. Copy .ex4 or .mq4 files into the MQL4/Experts folder
  2. If the EA includes .dll files, copy them to MQL4/Libraries
  3. If there are .mqh include files, place them in MQL4/Include
  4. Any .set preset files go into MQL4/Presets

Do not place files in subfolders unless the EA documentation specifically instructs you to. MT4 does scan subfolders within Experts, but some EAs expect to be in the root Experts directory. When in doubt, place files directly in MQL4/Experts.

Step 3: Refresh MT4 to Detect the EA

After copying files, MT4 needs to recognize the new EA. You have two options:

  • Quick method: In the Navigator panel (Ctrl+N), right-click on Expert Advisors and select Refresh
  • Full method: Close and restart MT4 completely -- this guarantees detection

After refreshing, your EA should appear in the Navigator panel under "Expert Advisors." If it does not appear, check the troubleshooting section below.

Install Golden Viper EA in under 3 minutes.We provide step-by-step setup assistance. +135% monthly, Myfxbook verified.
Try Free →

Step 4: Attach the EA to a Chart

Now that the EA is visible in the Navigator, attach it to the correct chart:

  1. Open a chart for the instrument the EA trades (e.g., XAUUSD)
  2. Set the chart to the correct timeframe (check EA documentation for recommended timeframe)
  3. In the Navigator panel, find your EA under "Expert Advisors"
  4. Double-click the EA name, or drag it onto the chart
  5. The EA properties dialog will appear automatically

Common Tab Settings

In the Common tab of the EA properties dialog, configure these critical settings:

  • Allow live trading: Must be checked for the EA to execute trades
  • Allow DLL imports: Check this only if the EA requires DLL files (the documentation will specify)
  • Allow import of external experts: Enable if the EA calls other EAs or scripts

Step 5: Configure EA Settings (Inputs Tab)

The Inputs tab contains the EA's configurable parameters. Every EA is different, but common settings include:

  • Lot size or risk percentage -- Start conservative. See our lot size guide for $1,000 accounts
  • Magic number -- A unique identifier for the EA's trades. Essential when running multiple EAs
  • Stop loss and take profit -- Default values are usually sensible starting points
  • Trading hours -- Some EAs let you restrict trading to specific sessions
  • License key -- If the EA requires activation, enter your key here

Save your settings: After configuring the Inputs tab, click the Save button to create a .set file. This lets you quickly reload your exact configuration if you ever need to re-attach the EA or restore settings after an MT4 update.

Step 6: Enable AutoTrading

The final step is enabling automated trading globally in MT4:

  1. Click the AutoTrading button in the toolbar -- it must show green
  2. Verify in Tools → Options → Expert Advisors that "Allow automated trading" is checked
  3. Check the chart corner -- you should see a smiley face icon, confirming the EA is active

If you see a frowning face instead of a smiley, the EA does not have permission to trade. Revisit Step 4 and ensure "Allow live trading" is checked in the EA properties.

Verification Checklist

Confirm everything is working correctly by checking all of these:

  • AutoTrading button is green in the toolbar
  • Smiley face visible in the chart corner
  • No error messages in the Experts tab (Ctrl+T, then click Experts)
  • EA name is displayed on the chart
  • Correct symbol and timeframe selected

Troubleshooting Common Issues

Even experienced traders run into these problems. Here are the fixes I use most often:

EA Does Not Appear in Navigator

  • Verify the file is .ex4 or .mq4 (not .zip -- extract first)
  • Confirm the file is in MQL4/Experts, not MQL4/Indicators or another folder
  • Right-click Expert Advisors in Navigator and select Refresh
  • If using .mq4 source code, open it in MetaEditor and compile (F7)
  • Restart MT4 completely if refresh does not work

EA Shows Frowning Face

  • AutoTrading is disabled -- click the button to turn it green
  • "Allow live trading" is unchecked in EA properties
  • DLL imports are blocked but required by the EA
  • License validation failed -- check the Experts tab for error details

EA Loads but Does Not Trade

If the smiley face is showing but the EA is not placing trades, the issue is usually not with installation but with trading conditions. See our detailed guide on fixing an EA that is not trading for a complete diagnostic checklist.

DLL Error Messages

  • Ensure .dll files are in MQL4/Libraries (not Experts)
  • "Allow DLL imports" must be checked in EA properties
  • Some antivirus software blocks DLLs -- add an exception for the MT4 data folder
  • 64-bit DLLs will not work with 32-bit MT4 -- contact the EA provider for the correct version

Running Multiple EAs on MT4

MT4 allows only one EA per chart. To run multiple EAs simultaneously:

  1. Open a separate chart for each EA (even if they trade the same symbol)
  2. Assign a unique magic number to each EA so their trades do not interfere
  3. Monitor total margin usage across all EAs to avoid margin calls
  4. Consider using a broker with sufficient leverage for multi-EA setups

Performance note: Running too many EAs on a single MT4 instance can slow execution. If you run more than 5 EAs, consider using a VPS to ensure stable performance. Each EA consumes CPU resources, especially during tick-intensive periods.

Frequently Asked Questions About Installing EA on MT4

Where do I put EA files in MT4?

Place .ex4 or .mq4 files in the MQL4/Experts folder inside your MT4 data directory. Access it via File, Open Data Folder in MT4, then navigate to MQL4, then Experts. If the EA includes DLL or library files, place those in the MQL4/Libraries folder.

Why is my EA not showing in MT4 Navigator?

After copying files, you must refresh MT4. Right-click Expert Advisors in the Navigator panel and select Refresh, or restart MT4 completely. Also verify the file is an .ex4 or .mq4 file placed in MQL4/Experts, not a subfolder or wrong directory.

Can I install multiple EAs on MT4?

Yes, you can install as many EAs as you want, but MT4 only allows one EA per chart. To run multiple EAs simultaneously, open separate charts for each EA. Use unique magic numbers to prevent trade conflicts between EAs.

Do I need to compile .mq4 files before using them?

Yes. MQ4 files are source code and must be compiled into .ex4 files using MetaEditor (press F7 to compile). Most EA sellers provide pre-compiled .ex4 files so you can skip this step.

Will my EA settings be lost if I update MT4?

EA files in MQL4/Experts are preserved during updates. However, chart-attached settings may reset. Save your settings as a .set preset file using the Save button in the EA Inputs tab before updating.

Myfxbook Verified

Ready to Install a Proven EA?

+135%Monthly Returns
81%Win Rate
24/5Automated
Starting at $99/month
Start 7-Day Free Trial →
✓ No credit card required✓ Full setup support✓ MT4 & MT5 compatible
GV

Golden Viper EA Team

We specialize in automated XAUUSD trading with verified live results. Our team provides hands-on installation support for every Golden Viper EA user.

Myfxbook VerifiedLive Trading Since 202481% Win Rate