How to install an Expert Advisor in MetaTrader 5

Step by step: copy an EA (.ex5 file) into MetaTrader 5, allow algorithmic trading, attach it to a chart and check that it is running.

5 min read. Updated 2026-12-03.

An Expert Advisor (EA) is a trading bot that runs inside MetaTrader 5. It comes as a file ending in .ex5. Installing it takes about five minutes. Do it on a demo account first, so you can see how the bot behaves before any real money is involved.

Before you start

  • MetaTrader 5 installed and logged in to your broker account (demo first).
  • The .ex5 file of the bot, saved somewhere you can find it.
  • The market and timeframe the bot is made for, for example EURUSD on H1.

1. Copy the file into the Experts folder

  1. In MetaTrader 5, open the File menu and choose Open Data Folder.
  2. In the folder that opens, go to MQL5, then Experts.
  3. Copy the .ex5 file into the Experts folder.
  4. Back in MetaTrader, find the Navigator panel (Ctrl+N if it is hidden), right-click Expert Advisors and choose Refresh. The bot now appears in the list.

2. Allow algorithmic trading

  1. Open Tools, then Options, then the Expert Advisors tab.
  2. Tick Allow algorithmic trading.
  3. If the bot checks its licence online, tick Allow WebRequest for listed URL and add the address given in the bot's instructions. Imara FX bots use https://imara-fx-store.vercel.app.
  4. Click OK.

3. Attach the bot to a chart

  1. Open a chart of the right market and set the right timeframe.
  2. Drag the bot from the Navigator onto the chart.
  3. In the window that opens, check Allow Algo Trading on the Common tab, then review the settings on the Inputs tab, especially the risk per trade.
  4. Click OK.
  5. Make sure the Algo Trading button on the main toolbar is switched on (green).

4. Check that it is running

The bot's name appears in the top-right corner of the chart. Open the Toolbox (Ctrl+T) and look at the Experts tab: the bot writes a message there when it starts, and explains any problem, such as a missing permission or a wrong timeframe. The Journal tab shows connection messages.

MetaTrader must stay open and connected for the bot to trade. If your computer sleeps or shuts down, the bot stops. That is why most people run bots on a VPS.

Common problems

  • The bot does not appear in the Navigator: the file is in the wrong folder, or you need to refresh the Navigator.
  • Nothing happens on the chart: the Algo Trading button is off, or Allow Algo Trading was not ticked for this chart.
  • A licence or WebRequest error in the Experts tab: the licence address is missing from the WebRequest list, or the MT5 account number is not the one on your licence.
  • No trades for days: many bots only trade when their conditions are met. Check the bot's rules and the market hours.

Go further