Buy and try our robot directly on the MetaTrader marketplace
Visit mql5

How to install a robot on MT5: complete guide

Would you like to automate your trading strategies with a robot (Expert Advisor) on MetaTrader 5 (MT5)?
The good news is that the platform includes everything you need to install, configure and test a trading robot. But you still need to know where to place the right files, which options to activate and how to validate the robot’s behaviour before launching it on a live account.

This step-by-step guide takes you through installation, commissioning, testing and good safety practice.


Preparing to install a robot on MT5

Choosing a reliable Expert Advisor

Before even thinking about copying a file into MT5, the first step is to select a serious trading robot on mt5.

  • The official MetaTrader Market (MQL5), accessible from the platform.
  • The MQL5.com community, where thousands of developers share their creations.
  • Robot trading providers with a reputation for algorithmic trading, whose robots have already proved their worth, such as our CAC40 trading robot.

There are two file formats on MT5:

  • .ex5: compiled, ready-to-use, non-modifiable version. Ideal if you want to install and use the robot immediately.
  • .mq5: source code version, which you can customise using the integrated MetaEditor editor. Useful if you have MQL5 programming skills.

Minimum technical requirements

  • MT5 installed on computer (Windows or Mac via emulation, but not on mobile/web).
  • Stable Internet connection, because an outage interrupts the robot’s execution.
  • 2 GB RAM minimum, more recommended if you are running several EA or backtests.
  • VPS option: essential if you want to run the robot continuously 24/7 without depending on your PC.

Steps for installing a robot on MT5 (PC)

Copy the file to the correct MQL5 folder

  1. Your robot will then appear in the Navigator > Expert Advisors section.
  2. Launch MetaTrader 5.
  3. Go to File → Open Data Folder.
  4. Open the folder MQL5 → Experts.
  5. Paste in your .ex5 or .mq5 files.
  6. Restart MT5 or, more simply, right-click on Expert Advisors in the Navigator window and click on Refresh.

Activating and configuring the robot

  1. If everything is correctly configured, a small smiling symbol appears at the top right of the graph: this is the sign that EA is active.
  2. Open a chart on the asset of your choice (e.g. EUR/USD, DAX40, or a stock).
  3. In the Navigator, drag the EA onto this graph.
  4. A window opens:
    • Check that Allow live trading is ticked.
    • Only enable Allow DLL imports if the robot needs them and you trust the source.
    • Set the Inputs (parameters: lot size, take-profit, stop-loss, trading hours, etc.).
  5. Click OK.

Then activate the Algo trading (or AutoTrading) button at the top of the platform: it should be displayed in green.

Testing a robot on MT5 before the real account

Backtesting with the Strategy Tester

MT5 offers a much more advanced strategy tester than MT4:

  • Launch Strategy Tester (shortcut Ctrl+R).
  • Select your EA, the asset (e.g. EUR/USD) and the time interval.
  • Choose the simulation mode(Every tick based on real ticks is the most accurate).
  • Click on Start.

The backtest allows you to analyse the robot’s historical performance: profit factor, maximum drawdown, gain/loss ratio, consistency of results. You can also compare several settings by changing the parameters in the Inputs tab.

Forward testing (demo account followed by live account)

Even a conclusive backtest is not enough. Real market conditions (slippage, execution speed, variable spread) are not always well reproduced by a backtest.
This is why it is essential to run the robot in a demo account for several days or weeks. This allows you to observe its behaviour at first hand, without any financial risk.

Once the demo has been validated, you can consider switching to a live account, preferably with smaller lots to start with.

Safety & best practice

A trading robot is not a magic wand. To make the most of it and limit the risks, adopt these reflexes:

  • Only activate trusted robots. Avoid free or “miracle” EA found on obscure forums.
  • Update MT5 regularly to benefit from the latest improvements and patches.
  • Protect your access with strong passwords and never share your login details.
  • Keep an eye on your robots, even the most efficient ones: the market changes and a strategy can become obsolete.
  • Beware of over-optimisation: an EA that is overfitted on the basis of historical data runs the risk of collapsing in the real world.

MT4 vs MT5: differences you need to know

Many traders are just starting out with MT4, but you should be aware that the robots are not compatible from one version to another:

  • An .ex4 / .mq4 (MT4) will not work on MT5.
  • MT5 uses .ex5 / .mq5 and a more powerful MQL5 language.

MT5 also offers a number of important advantages:

  • A faster, more accurate multi-threaded tester.
  • Access to more indicators and a more complete data history.
  • Better integration for multi-asset trading (equities, futures, options).

In other words, if you are just starting out, MT5 is a more modern and sustainable option than MT4.

Feedback and practical tips

Experienced users often share the same observations:

  • Installing an EA is quick (less than 5 minutes once you know the procedure).
  • A VPS is almost indispensable if you want to run 24 hours a day without worrying about power cuts or Windows updates.
  • Even the best robot requires monitoring: it is no substitute for a trading plan or appropriate risk management.
  • Starting with a demo is compulsory, even if the supplier promises “guaranteed” results.

Installing a robot on MetaTrader 5 is a simple operation: just place the file in the MQL5/Experts folder, refresh the platform, activate the algorithm and configure the robot on a chart.

But the real added value comes from the testing and supervision phase. A robot should never be launched “blind” on a real account: backtesting, demo accounts and rigorous monitoring remain essential.

Thanks to MT5 and its advanced features, you have a powerful environment for automating your trading strategies. With method and care, an Expert Advisor can become a valuable tool in your trading arsenal.

To find out more, read our articles on :