HOW TO

How to setup ea (Expert Advisor) MT4- MT5 with DLL

How to setup ea (Expert Advisor) MT4- MT5 with DLL

Important Note:

  1. Important Warning:
    Some antivirus programs may block and label this file as potentially containing a virus.
    You need to configure your antivirus to “allow” this file, or you must disable the antivirus program before downloading and installing.
  2. This is a False Alarm and Safe:
    This is just a false alarm, and the file is safe.
    The false alarm is triggered because this is a custom DLL and is not verified by any specific publisher.
  3. Must Allow to Unlock the Product:
    Despite the false alarm, you must allow it, or you need to disable the antivirus program to successfully unlock the product during installation.

Setting up an Expert Advisor (EA) with DLL (Dynamic Link Library) functionality on MetaTrader 4 (MT4) or MetaTrader 5 (MT5) involves a few key steps. Here is a general guide to help you with the setup:

Step 1: Disable the automatic update function for MT4-MT5.

Before installing the EA with DLL, ensure that the MT4-MT5 update feature is turned off.

Please download and run both files provided in the link before opening MT4.

Link to download both files: https://mega.nz/file/FeliARYJ#-nKltwJQNLVLajCeLgUbjuPOdH-SLxV-4t66ykjU_M4

How to setup ea (Expert Advisor) MT4- MT5 with DLL (1)

Step 2: Install the DLL into MetaTrader 4 -MetaTrader 5

Kindly access the Properties or open the file location of MT4-MT5.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (2)

How to setup ea (Expert Advisor) MT4- MT5 with DLL (3)

Following that, duplicate all the DLL files included with the EA

How to setup ea (Expert Advisor) MT4- MT5 with DLL (4)

and insert them into MetaTrader 4 – MetaTrader 5.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (5)

Step 3: Move your EA files into your MT4 terminal.

Ensure that all files necessary for the proper operation of your Expert Advisor in MetaTrader 4 are located within the Data Folder of your MT4 terminal.

To achieve this:

  1. Open your MetaTrader 4.
  2. Navigate to the upper menu and click on “File.”
  3. Select “Open Data Folder.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (6)

The Data Folder linked to your MT4 terminal is now accessible.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (7)

Within the recently opened Data Folder, navigate to MQL4 -> Experts. This directory is where you should position your EA files. If your EA consists of two files (.ex4 and .mq4), proceed by copying and pasting them directly into the Experts folder. In the case of an EA with multiple files, copy and paste the entire unzipped folder from Step 1 into the Experts folder.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (8)

Important to note, if your EA depends on custom indicators, these should be placed in a distinct folder: MQL4 -> Indicators. For files with a .dll extension, they belong in the MQL4 -> Libraries folder. Once you have copied all the necessary files into their respective folders, restart your MT4 terminal. Alternatively, open the “Navigator” in your MetaTrader 4, right-click on “Expert Advisors” in the menu, and select “Refresh.”

How to setup ea (Expert Advisor) MT4- MT5 with DLL (9)

Congratulations! Your EA has been successfully installed in your MT4 terminal and is now accessible in the “Navigator” window under the “Expert Advisors” menu.

Step 4: Before initiating, thoroughly review and verify your EA settings.

Navigate to the upper navigation menu and click on “Tools,” then select “Options.”

How to setup ea (Expert Advisor) MT4- MT5 with DLL (10)

In the opened window, go to the “Expert Advisors” tab and ensure the following:

  1. Confirm that “Allow automated trading” is enabled.
  2. Enable “Allow DLL imports” if your EA utilizes .dll files.
  3. For security reasons, if your EA is tailored for a specific financial asset or time-frame, activate “Disable automated trading when the chart’s symbol or period has been changed.”

How to setup ea (Expert Advisor) MT4- MT5 with DLL (11)

Verify whether “AutoTrading” is enabled on the MT4 terminal control panel. For your EA to execute trades automatically, this button should be activated. When switched on, the button will display a green indication.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (12)

Step 5: Initiate your Expert Advisor.

Before initiating your EA, ensure that you have opened the chart with the desired financial asset and time-frame.

In the “Navigator” window, expand the “Expert Advisors” menu, and select the specific EA you wish to start.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (13)

Double-click on the EA or drag-and-drop it onto the chart. This action will open the settings window of the Expert Advisor.

On the “Common” tab, confirm that your EA is permitted to trade automatically. Additionally, review other parameters such as allowing alerts (if your EA utilizes them) and .dll imports (if your EA uses external .dll files).

How to setup ea (Expert Advisor) MT4- MT5 with DLL (14)

On the “Input” tab, ensure that all EA parameters align with your trading strategy. Once you’ve confirmed all the settings, click “OK.” Your Expert Advisor is now operational.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (15)

Step 6: Confirm that your EA is actively running.

If the installation and launch procedures were successful, you should observe a smiley face at the top right corner of the chart, near the name of your Expert Advisor.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (16)

Examine the “Experts” and “Journal” tabs at the bottom of your terminal. If there are no error alerts present, it indicates that your Expert Advisor has been successfully launched and is currently active.

How to setup ea (Expert Advisor) MT4- MT5 with DLL (17)

Leave a Reply

Your email address will not be published. Required fields are marked *