Saved in this browser only.
In this tutorial
Before you start
- MetaTrader 5 installed and logged in — see How to Install MetaTrader 5.
- The EA's MT5 file: a compiled
.ex5(an MT4.ex4will not load). Extract.zipdownloads first. - Any
.setpreset files the developer supplies. - Ideally a demo account for the first run.
What you'll learn
- Put the EA file in the right folder.
- Attach it to a chart with the correct permissions.
- Check from the logs that it's running.
Steps
Step 1: Open the data folder
In MT5, choose File → Open Data Folder, then open
MQL5→Experts.Step 2: Copy the EA file
Paste the
.ex5file intoExperts. A sub-folder per product keeps things tidy. Put any.setfiles inMQL5\Presets.Step 3: Refresh the Navigator
Open the Navigator (Ctrl+N), right-click Expert Advisors and choose Refresh. The EA now appears in the list.
Step 4: Attach the EA to a chart
Open a chart with the symbol and timeframe from the EA's documentation, then drag the EA onto it or double-click it in the Navigator.
Step 5: Allow it to trade
In the properties window, on the Common tab, tick Allow Algo Trading (called Allow Auto Trading in older builds).
If the developer says the EA uses DLLs, enable Allow DLL imports on the Dependencies tab — only for software you trust.
Step 6: Review the inputs
On the Inputs tab, check the lot-size and risk settings, or click Load to import a
.setfile. Configure EA settings explains the common inputs.Step 7: Turn on Algo Trading
Click OK, then make sure the Algo Trading button on the main toolbar (called AutoTrading in older builds) is on. The EA's name and a status icon appear in the chart's top-right corner.
Expected result
The EA's name shows in the top-right of the chart with an active status icon, and the Experts tab of the Toolbox (Ctrl+T) shows that it loaded on your symbol without errors.
Troubleshooting
- The EA isn't in the Navigator
- Check it's an
.ex5inMQL5\Expertsof the data folder (not Program Files), then refresh the Navigator or restart MT5. - "Algo trading is disabled" in the Experts tab
- Both the toolbar Algo Trading button and the EA's own Allow Algo Trading (press F7 on the chart) must be on.
- It loads but never trades
- Follow Troubleshoot an EA That Isn't Trading.
Next tutorial
How to Configure Expert Advisor Settings
Configure an Expert Advisor's inputs in MT4 or MT5: lot size and risk, stop-loss units, magic numbers and spread limits, plus saving and loading .set files.
Continue