How to install a robot on MT4: complete guide
Would you like to automate your trading strategies using a robot (Expert Advisor) on MetaTrader 4?
This guide explains how to install a robot on MT4 easily, even if you are a beginner. You will learn :
- where to copy the files (.ex4/.mq4),
- how to activate auto-trading,
- configure the essential parameters
- test your robot in complete safety.
We also compare MT4 and MT5, talk about the ProRealTime option, and offer feedback to help you understand. Follow every step of the way to clearer, more structured and more efficient automatic trading.

Preparing to install the robot on MT4
Choosing a reliable robot
We recommend that you choose robots that have already been tested and validated by the community to reduce the risk of errors or unpleasant surprises. The official MetaTrader market, the MQL5 community and well-known developers in the field of algorithmic trading are reliable sources for finding quality Expert Advisors, such as our CAC40 trading robot, which was developed by a partner of European banks.
In terms of formats, there are two main extensions:
- The .ex4 file is a compiled version, ready to use and unmodifiable, ideal for traders who want to use it simply and securely.
- The .mq4 file contains the robot’s source code, so you can customise or adapt it to your needs, provided you have programming skills.
Technical requirements
- MT4 Platform installed on PC (not on mobile or web)
- Stable Internet connection, at least 2 GB RAM recommended.
- VPS option particularly useful if you want to keep the robot running 24/7

OptiBot Trading CAC40 robot trend following
Installation steps on a PC (local)
Copying files to MT4
- Open MT4 → File > Open Data Folder → MQL4 folder > Experts.
- Copy your .ex4 or .mq4 files to this folder.
- Restart MT4 or refresh the Navigator (Expert Advisors) window.



Activating and configuring the robot
- In MT4, drag the Navigator EA onto a chart.
- Tick Allow live trading, Allow DLL imports if necessary.
- Activate the AutoTrading button (must be green).
- Check that the smile at the top of the chart is an active EA indicator

Robot testing and validation on MT4
Backtesting with Strategy Tester
- Open Strategy Tester, select your EA, the currency pair, the timeframe and run the historical test.
- Compare different parameters (take-profit, stop-loss, position size).
Forward testing (demo account followed by live account)
- Test the demo first to observe real-life behaviour without risk.
- Analyse the metrics: profit factor, drawdown, risk/return ratio.
- Then move on to a real account if the results are satisfactory
Safety & best practice
- Only activate trusted robots.
- Keep MT4 up to date, use strong passwords and back up your files.
- Beware of over-optimisation and exaggerated performance: past performance ≠ future performance
MT4 vs MT5 vs ProRealTime: which platform should you choose?
- Compatibility: an MT4 EA does not work on MT5.
- MT5: more indicators, denser history; if you code, more power.
- ProRealTime: an alternative, visual platform often used for automated trading. Interesting to compare if you’re looking for greater flexibility or chart analysis.
User experience feedback
- Metatrader 4 is no longer under development and you can only download it from brokers who still support it.
- Many beginners start with downloaded .ex4 files and see how much time they save.
- Using a VPS (such as SocialVPS) improves stability and avoids PC downtime.
- The importance of monitoring: even the best robot needs human supervision to make adjustments.
You now know how to install a robot on MT4 (Expert Advisor), step by step, in complete safety. From preparation to commissioning, from testing to monitoring, this guide will take you through each step clearly. To find out more, read our articles on :
- How to backtest effectively with MT4
- Compare the performance of MT4 and MT5 robots
- Optimising your robot on ProRealTime
- How to install a trading robot on ProRealTime
- How to install a trading robot on MT5
Want to give it a try? Check out our MT4, MT5 and ProRealTime compatible trading robots.
