Trading robots

How to Install an EA on MetaTrader 5: Step by Step

Installing a robot takes five minutes, but one missed checkbox means it will never open a trade. Here is the full process in MetaTrader 5, with nothing skipped.

Boris Kuljaj · 8 min read

How to Install an EA on MetaTrader 5: Step by Step
Contents
  1. Before you install an EA on MT5
  2. Step 1: put the .ex5 file into the Experts folder
  3. Step 2: enable Algo Trading and WebRequest
  4. Step 3: attach the robot to the right chart
  5. Step 4: check that the robot is really working
  6. Common problems and fixes
  7. After installation: VPS and news
  8. In short: your checklist

The message I get most often from people who just downloaded a robot is: "I installed it, but it doesn't open any trades." It is almost always one small thing: the file is in the wrong folder, Algo Trading is switched off, or the address is missing from the WebRequest list.

That is why I wrote this guide. If you know the exact order, the steps to install an EA on MT5 take a few minutes, and here they are, one by one.

You will learn exactly where the .ex5 file goes, which settings you must enable in MetaTrader 5, how to attach the robot to a chart, and how to check in ten seconds whether it is actually working.

Before you install an EA on MT5

Make sure you have everything you need:

  • MetaTrader 5 installed on a computer or on a VPS. The mobile app does not run robots.
  • Your trading account logged in to MT5 (account number, password and server from your broker).
  • The robot file with the .ex5 extension. If you see .mq5, that is source code, not a ready-to-run robot.
  • The PDF guide that comes with the robot. It contains the exact settings and the WebRequest address.

If MetaTrader 5 is completely new to you, read MetaTrader 5 for beginners first, then come back. If you are not yet sure what a robot actually does, see what is a trading robot.

Step 1: put the .ex5 file into the Experts folder

  1. Open MetaTrader 5.
  2. In the top menu click File > Open Data Folder. Your terminal's data folder opens.
  3. Go into the MQL5 folder, then Experts.
  4. Copy the robot's .ex5 file into that folder.
  5. Go back to MT5. In the Navigator window (Ctrl+N), right-click Expert Advisors and choose Refresh.

The robot should now appear in the list under Expert Advisors. If it doesn't, you most likely copied it into another terminal's folder (for example when you have two MetaTraders installed) or into the wrong subfolder.

Step 2: enable Algo Trading and WebRequest

Now you set up the platform to allow automated trading.

  1. Click Tools > Options (or Ctrl+O).
  2. Open the Expert Advisors tab.
  3. Tick Allow algorithmic trading.
  4. Tick Allow WebRequest for listed URL.
  5. Below it, add the address from the PDF guide (click the empty row, type the address and confirm).
  6. Click OK.

Why WebRequest? Our robots use that address to check that the account was opened under the partner code. Without it the robot cannot complete the check and will not trade. Copy the address exactly as written in the guide, including https:// at the start.

Step 3: attach the robot to the right chart

  1. Open a chart of the instrument the robot was built for. For gold, the symbol name depends on the broker (for example XAUUSD or GOLD), and the PDF guide tells you which one to use.
  2. Select the timeframe from the guide.
  3. Drag the robot from the Navigator onto the chart (or double-click its name).
  4. A settings window opens. On the Common tab, make sure Allow Algo Trading is ticked.
  5. The Inputs tab holds the robot's parameters (risk, filters). Unless you have a clear reason, keep the default values from the guide.
  6. Click OK.
What you setWhereWhat it should show
Robot fileFile > Open Data Folder > MQL5 > Expertsthe .ex5 file
Automated tradingTools > Options > Expert AdvisorsAllow algorithmic trading ticked
Account checksame place, WebRequest listthe address from the PDF guide
Permission for this chartrobot window > CommonAllow Algo Trading ticked
Parametersrobot window > Inputsvalues from the guide
Main switchtoolbarAlgo Trading button on

Learn and trade with THE ONE FX

Everything you need after this article, in one place.

Step 4: check that the robot is really working

This is the step most people skip.

  • The Algo Trading button in the toolbar must be on (green icon). If it is red, the robot sits on the chart but is not allowed to trade.
  • The top-right corner of the chart shows the robot's name with a small icon. If the icon is grey or crossed out, automated trading is off for that chart.
  • Toolbox (Ctrl+T), Experts tab: this is where the robot writes its messages, for example that it has loaded, that the account check passed, or that something is wrong. The Journal tab shows the platform's own messages.

Common problems and fixes

ProblemLikely causeFix
Robot not visible in the Navigatorwrong folder or not refreshedFile > Open Data Folder, then Refresh
Icon on the chart is greyAlgo Trading is offswitch the button on and tick the box on the Common tab
WebRequest message in the Experts tabaddress missing or mistypedTools > Options > Expert Advisors
No trades for daysconditions not met, wrong symbol or market closedcheck symbol, timeframe and the robot's messages
"Not enough money" errorbalance too small for the minimum lotfund up to the recommended level

Two more small things that cause trouble:

  • Don't attach the same robot twice to the same symbol on the same account, unless the guide explicitly says so. You get duplicate trades and double the risk.
  • If you log in to a different account in the same terminal, check again that the robot is still on the chart and that Algo Trading is on.

How to change the settings later

If you want to change a parameter, for example switch on the news filter, you don't need to reinstall the robot. Press F7 while the chart is active (or right-click the chart and open the Expert Advisor properties), change the value on the Inputs tab and click OK. Change one thing at a time and note what you changed and when. That way you'll know later whether a change in results came from the market or from your settings. And if the robot runs on a VPS, you have to apply the same change there too.

After installation: VPS and news

A robot only works while MetaTrader is open and connected to the internet. If you turn off your computer or lose your connection, the robot stops. That is why most traders move it to a VPS, which I cover in VPS for trading robots. Our PDF guide includes a section on VPS setup too.

The other question is what the robot does when major economic news comes out. Our robots have an optional news filter that you switch on in the inputs. When it makes sense and when it doesn't, I explain in trading robots and economic news.

For our robots (free with an XM, Vantage or PU Prime account opened under my partner code, minimum $100, recommended $1,000), all information, backtests and downloads are on the robots page.

The economic calendar and the daily analysis are in the TheOneFXTradingApp, so you can check the news in one place.

In short: your checklist

Before you close the platform, run through it once more: the file is in MQL5 > Experts, Allow algorithmic trading is ticked, the address is in the WebRequest list, the robot is on the right symbol and timeframe, Allow Algo Trading is ticked on the Common tab, the Algo Trading button is green and the Experts tab shows no errors.

And remember: a correct installation means the robot follows its rules exactly. It does not mean every trade will be a winner. Automation does not guarantee profit.

Frequently asked questions

Where do I put an EA in MetaTrader 5?

In MT5 click File > Open Data Folder, go to MQL5 > Experts and copy the .ex5 file there. Then right-click Expert Advisors in the Navigator, choose Refresh, and the robot appears in the list.

Why is my EA not opening trades?

The usual reasons are the Algo Trading button being off, the Allow Algo Trading box unticked in the robot's window, a missing WebRequest address or the wrong symbol. Check the Experts tab in the Toolbox, where the robot reports what is wrong. Sometimes the entry conditions simply haven't been met yet.

What is WebRequest in MT5 and why does the robot need it?

WebRequest is a permission that lets a robot send a request to a specific web address. You add the address in Tools > Options > Expert Advisors. Our robots use it to check that the account was opened under the partner code.

Can I run an EA on the MT5 mobile app?

No. The MetaTrader 5 mobile app does not run Expert Advisors. The robot has to run in the desktop version of MT5 on a computer or a VPS; you can use your phone only to follow the trades.

How do I know if my EA is active?

The Algo Trading button must be green, the icon next to the robot's name in the top-right corner of the chart must not be grey, and the Experts tab should show a message that the robot loaded without errors.

Risk warning: trading Forex, gold and CFDs carries a high risk of losing capital and is not suitable for everyone. This article is educational and is not investment advice or a recommendation to buy or sell. Examples are illustrative, and past results do not guarantee future results. Some links are affiliate links: more information.

Read next

All articles