How to Install an Expert Advisor in MetaTrader 4 and 5 (MT4/MT5): Step-by-Step Guide
Learn how to install an EA in MetaTrader 4 and 5 in 5 minutes: add a trading robot to your terminal, configure it, and check it works. EA installation for MT4 and MT5.
Installing an expert advisor in MetaTrader 4 (MT4) or MetaTrader 5 (MT5) takes just a few minutes. This step-by-step guide explains how to install a trading robot (Expert Advisor, EA) in MetaTrader: where to copy the file, how to attach it to a chart, and how to check it is working. The instructions cover both MT4 and MT5.
# How to Install an EA (Expert Advisor) in MetaTrader 4/5: Step-by-Step GuideTrading robots (Expert Advisors, or EAs) are powerful tools for automating forex trading. Before an EA can start generating profits, however, it must be installed correctly in the MetaTrader terminal. This article walks through the complete EA installation process for MT4 and MT5.
What is an Expert Advisor (EA)?
An Expert Advisor is a program written in MQL4 (for MetaTrader 4) or MQL5 (for MetaTrader 5) that automatically analyzes the market and trades according to a defined algorithm. EA files have the .ex4 or .ex5 extension.
Requirements before installation
Before you begin, make sure:
- ✅ MetaTrader 4 or MetaTrader 5 is installed
- ✅ You downloaded the EA file from a reliable source (such as TradEApro)
- ✅ Your antivirus is not blocking
.ex4or.ex5files - ✅ You have administrator rights on your computer
Step-by-step EA installation in MetaTrader 4
Step 1: Open the MetaTrader 4 data folder
- Launch MetaTrader 4
- In the top menu, select File → Open Data Folder
- The terminal's file folder will open
Alternative: Press Ctrl + Shift + D
Step 2: Copy the EA file
- In the folder that opens, navigate to MQL4 → Experts
- Copy your EA file (with the
.ex4extension) into this folder - If the EA includes several files, copy all of them
Important: Do not rename the EA file when copying it!
Step 3: Restart MetaTrader 4
Close and reopen MetaTrader 4 to refresh the list of available expert advisors.
Step 4: Find the EA in Navigator
- Open the Navigator window (Ctrl + N)
- Expand Expert Advisors
- Your EA should appear in the list
Step 5: Attach the EA to a chart
- Open a chart for the required currency pair
- Drag and drop the EA from Navigator onto the chart
- The EA settings window will open
Step 6: Configure the settings
On the Common tab, make sure these options are checked:
- ☑️ Allow live trading
- ☑️ Allow DLL imports (if required)
On the Inputs tab, configure:
- Lot size
- Stop Loss and Take Profit
- Other EA parameters
Click OK
Step 7: Enable automated trading
Find the AutoTrading button on the terminal's top toolbar and make sure it is enabled (green).
Done! A status icon will appear in the chart's upper-right corner:
- 😊 — the EA is working correctly
- 😐 — the EA is loaded, but automated trading is disabled
- ❌ — an EA error has occurred
Installing an EA in MetaTrader 5
Installation in MT5 is similar to MT4, with a few differences:
Differences in MT5:
- Folder path: MQL5 → Experts (instead of MQL4)
- File extension:
.ex5(instead of.ex4) - Interface: The window design is slightly different
All other steps are the same as in the MT4 instructions.
Common problems and solutions
The EA does not appear in the list
Solution:
- Check that the file is in the correct folder (MQL4/Experts or MQL5/Experts)
- Restart the terminal
- Make sure the file has the
.ex4or.ex5extension
A sad face ☹️ appears on the chart
Solution:
- Check the logs (the Experts tab at the bottom of the terminal)
- Make sure automated trading is enabled (the AutoTrading button)
- Check the EA settings (right-click the chart → Expert Advisors → Properties)
The EA does not open trades
Solution:
- Make sure live trading is allowed in the EA settings
- Check the lot size (the account may have insufficient funds)
- Make sure your broker allows automated trading
Antivirus blocks the EA
Solution:
- Add the MetaTrader folder to your antivirus exclusions
- Download EAs only from trusted sources
- Scan the file for viruses before installation
Checking the EA is working
After installation, check the expert advisor:
- Check the logs: EA messages should appear in the Experts tab
- Check the status: the face in the chart corner should be smiling 😊
- Test on demo: test the EA on a demo account before using it live
- Check open positions: make sure the EA opens trades according to its strategy
Safety recommendations
- ⚠️ Always test an EA on a demo account before using it live
- ⚠️ Download EAs only from trusted websites (such as TradEApro)
- ⚠️ Check other traders' reviews before using an EA
- ⚠️ Use Stop Loss to limit risk
- ⚠️ Do not trust promises of guaranteed profits
Popular EAs for beginners
If you are new to trading robots, we recommend starting with these vetted EAs:
Next steps
After successfully installing your EA, we recommend reading:
- Expert advisor setup: step-by-step guide
- How to test EAs in the Strategy Tester
- Top 5 mistakes when using EAs
Conclusion
Installing an Expert Advisor in MetaTrader is straightforward and takes no more than 5 minutes. Follow the instructions and check every setting before you begin trading. Remember to test the EA on a demo account and use risk management!
If you have questions about installation, leave a comment—we will be happy to help!
Useful links:
🤖 Recommended trading robots
Put what you have learned into practice with our free EAs:
- Free MT4 expert advisors - a catalog of vetted trading robots
- All files have been tested and are ready to use
- Step-by-step installation and setup instructions are included
Popular EAs:
- Quantum Emperor MT4 - an advanced robot with adaptive stop losses
- AI Gen XII EA - an intelligent EA using neural networks
- Black Diamond EA - a reliable robot for beginners
Share this article:
Comments (0)
No comments yet
Be the first to leave a comment!