YoForexEA
Installation & SetupBeginner6 min read

HOW TO INSTALL AN EXPERT ADVISOR ON MT4

Complete step-by-step guide to installing Expert Advisors (.ex4 and .mq4) on MetaTrader 4, enabling AutoTrading, and verifying chart status.

By YoForexEA Research Desk

Quick Summary

To install an Expert Advisor on MT4, open File > Open Data Folder, navigate to MQL4 > Experts, and paste your .ex4 or .mq4 file. Restart MetaTrader 4 or refresh the Navigator panel, enable AutoTrading in Tools > Options > Expert Advisors, drag the EA onto the intended chart, and verify the top-right smiley face icon.

What You Need Before Starting

Before installing an Expert Advisor on MetaTrader 4, verify that you have the correct terminal version and compatible robot files:

  • MetaTrader 4 Desktop Terminal: Automated robots run on the Windows or macOS desktop build of MT4—not inside mobile MT4 apps.
  • Compatible EA File: An MT4 compiled binary (.ex4) or MQL4 source file (.mq4). MT5 .ex5 files will not load in MT4.
  • Active Demo or Live Account: Use a demo account first to confirm order permissions, lot sizing, and error-free execution.
  • Optional Preset File: Any accompanying .set settings file should go into MQL4/Presets.

Step-by-Step MT4 Installation Process

MetaTrader 4 stores user-installed programs inside a per-profile Data Folder rather than inside the main Program Files directory. Always use the built-in menu shortcut so files land in the active terminal instance:

  1. Locate the Downloaded EA File: Extract any ZIP archive first so you can access the standalone .ex4 (or .mq4) file directly.
  2. Open the MT4 Data Folder: Launch MetaTrader 4, click File in the top-left menu, and select Open Data Folder.
  3. Open MQL4 > Experts: In the file explorer window that opens, double-click MQL4 and then open the Experts subfolder.
  4. Paste the EA File: Copy your .ex4 or .mq4 file into MQL4/Experts. If the EA includes custom indicators, place those separately inside MQL4/Indicators.
  5. Refresh or Restart MT4: Return to MT4, open the Navigator panel (Ctrl+N), right-click Expert Advisors, and click Refresh (or restart MT4 completely).
  6. Enable Global AutoTrading Permissions: Open Tools > Options > Expert Advisors, check Allow automated trading, and click OK. Only enable Allow DLL imports if the EA documentation specifically requires it from a trusted developer.
  7. Attach the EA to Your Target Chart: Open the exact symbol and timeframe chart required by the strategy, drag the EA from Navigator onto the chart, confirm Allow live trading on the Common tab, adjust your risk settings on the Inputs tab, and click OK.
  8. Verify the Smiley Face Icon: Confirm that the EA name appears in the top-right corner of the chart followed by a smiley face icon and that the toolbar AutoTrading button is green.

Common MT4 Installation Issues and Fixes

Symptom Likely Cause Fix
EA missing from Navigator File pasted into Program Files or still inside a ZIP archive Extract the archive, paste into File > Open Data Folder > MQL4 > Experts, and refresh Navigator.
Frown / sad face next to EA name Global AutoTrading or chart-level live trading is disabled Click the green AutoTrading toolbar button and press F7 > Common > check Allow live trading.
EA loads then removes itself immediately Compile error, license check, or missing dependency indicator Inspect the Experts and Journal tabs at the bottom of the Terminal window for the exact reason code.
No trades placed despite smiley face Market closed, wide spread filter triggered, or no entry signal yet Verify live quote ticks in Market Watch and review spread/session filters in the EA Inputs tab.

ACTION CHECKLIST

  1. Locate the downloaded EA file: Extract any archive and locate the .ex4 or .mq4 Expert Advisor file on your computer.
  2. Open MetaTrader 4 Data Folder: Launch MT4, click File in the top menu, and select Open Data Folder.
  3. Navigate to MQL4 Experts: Open the MQL4 folder and double-click the Experts subfolder.
  4. Copy the EA file: Paste the .ex4 or .mq4 file into MQL4/Experts (and any .set presets into MQL4/Presets).
  5. Refresh Navigator or restart MT4: Press Ctrl+N, right-click Expert Advisors in Navigator, and choose Refresh or restart MetaTrader 4.
  6. Enable automated trading: Go to Tools > Options > Expert Advisors, check Allow automated trading, and confirm the toolbar AutoTrading button is active.
  7. Attach EA to the chart: Drag the EA onto the target symbol and timeframe chart, verify Allow live trading in Common, configure Inputs, and click OK.
  8. Confirm the smiley face icon: Check the top-right corner of the chart for a smiley face next to the EA name and verify the Experts tab shows no errors.

FREQUENTLY ASKED QUESTIONS

Where is the Experts folder located in MetaTrader 4?

Rather than browsing Program Files manually, click File > Open Data Folder inside MT4 and open MQL4 > Experts. That always resolves to the exact terminal profile directory MT4 reads from.

Do I need both the .mq4 and .ex4 file to run an EA?

No. MetaTrader 4 executes the compiled .ex4 file. If you only have an .mq4 source file, pasting it into MQL4/Experts and refreshing Navigator or compiling in MetaEditor automatically produces the .ex4 binary.

Can I install and run an MT4 EA on Android or iOS?

No. The mobile MetaTrader 4 apps do not support running Expert Advisors. To run an EA 24/5, install it on desktop MT4 or a Windows Forex VPS and monitor positions from your phone.

EXPLORE RELATED EA HUBS

MT4 Expert Advisors →MT4 Indicators →Gold EAs →

CONTINUE READING

EXPLORE VERIFIED EXPERT ADVISORS

Browse MT4 and MT5 bots, indicators, and setup resources across YoForexEA.

Browse EAsAll 18 GuidesEA FAQ