Home » Guides » How to Install Expert Advisors in MetaTrader (User Tutorial)

How to Install Expert Advisors in MetaTrader (User Tutorial)

The tutorial has been completely revamped to reflect the most current and easiest way to install new expert advisors in MetaTrader both MT4 and MT5. Since MT4 Build 600, there is no difference in the way it is done in the two versions of the platform.

Using MetaTrader expert advisors is simple, but sometimes people get confused about it. After downloading an expert advisor file, a user might get stuck with it without knowing what to do next. Here is a simple tutorial on how to attach an expert advisor to a MetaTrader chart and activate it for trading. The process is quite similar to installing a new indicator, but there are some differences.

1. Download your Metratrader 4 / Metatrader 5 expert advisor and save it anywhere on your PC.

2. Launch your trading platform.

3. Open the platform’s data folder via menu File->Open Data Folder:

open data folder

Alternatively, you can navigate to the folder using Windows Explorer:

C:\Users\<Windows_User_Name>\AppData\Roaming\MetaQuotes\Terminal\<Instance_ID>\

4. Open MQL4 folder (or MQL5 if you are installing an MT5 EA):

open mql4 or mql5 folder

5. Open Experts folder:

open experts folder

6. Paste your expert advisor file here:

paste expert file

7. If it is an already compiled file (.ex4 or .ex5), then fine. All you need to do is return to your MetaTrader, right-click on Expert Advisors in Navigator subwindow, and click Refresh. The new expert advisor will appear in the same Navigator subwindow:

refresh Expert Advisor list

8. If it is not a compiled file but a source file (.mq4 or .mq5), then you need to double-click its icon — it will open in MQL Editor (it is included in MetaTrader package). Now, either press F7 or click Compile button:

Compile

Normally, there should not be any errors during compilation. However, if some errors appear in the Toolbox subwindow, you can either try fixing them or contact the EA’s developer to help with the issue. Usually, it takes some MQL knowledge and coding skills to fix such errors. No errors output looks like this:

Compilation no errors

Compilation errors look like this:

compilation errors

9. After you compile or copy an executable MetaTrader file (.ex4 or .ex5), you can start using the expert advisor in your platform. Now, it is time to attach it to the chart:

Attach Expert Advisors

10. Make sure auto-trading is enabled globally and for the given expert advisor:

Enable Auto Trading

11. Additionally, you can change some of the advisor’s input parameters in the Inputs tab:

Expert Advisors input parameters

This is it! Now, you can enjoy your expert advisor’s performance. Good luck with it!

If you have any questions about installing custom expert advisors in MetaTrader, please free to ask using the commentary form below.

Related Posts
How to Open a Demo Account in XM Global
How to open a demo account in xm

In this tutorial, we are going to look at how to open a demo account in the XM Global Forex Read more

How to Reset Password and How Login to XM Platform?

How to Login XM account? Go to XM WebsiteClick on “MEMBER LOGIN” buttonEnter your MT4/MT5 ID (Real Account) and password.Click on Read more

How to Set Stop Loss, Take Profit, and Trailing Stop in XM MT4
how to set stop loss take profit and trailing stop in xm mt4

One of the keys to achieving success in financial markets over the long term is prudent risk management. That’s why Read more

How to Download, Install, and log in to XM MT5 for Mac

Trade on MT5 with a Mac Fully compatible with all macOS up to and including Big Sur, with no need Read more

Leave a Comment

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published.

XM 30USD No Deposit Bonus