How to create a trading robot in MT5 mobile, and where EAs actually run
The answer to how to create a trading robot in MT5 mobile is to build it on a desktop. The MetaTrader 5 mobile help covers monitoring and manual trading on the phone and does not list running Expert Advisors. The desktop terminal runs EAs that are written and compiled in MetaEditor.
Trading forex and CFDs involves substantial risk of loss. Automation applies rules; it does not remove trading risk. Read our risk disclosure.
Key takeaways
- The MetaTrader 5 mobile help covers monitoring and manual trading on the phone and does not list running Expert Advisors.
- Build and compile the EA in MetaEditor on a desktop, then test it in the Strategy Tester and on a demo account.
- A robot runs only while its terminal is open and connected, so use a PC that stays awake, a forex VPS or MetaQuotes virtual hosting.
- Phone alerts can come from the desktop terminal once you enter a MetaQuotes ID, or from your broker’s trade server if the broker supports it.
- Use only EAs you wrote, bought or licensed, and treat backtests and demo results as evidence, not proof.
What an MT5 mobile trading robot can and cannot do
A trading robot is an Expert Advisor (EA): an MQL5 program that reads prices and can send orders without you clicking. The MT5 apps for iPhone, iPad and Android give you charts, indicators, news, notifications and a complete set of market and pending orders, so you can trade by hand from the phone. The mobile help does not list running an EA as one of those features. Treat the phone as the control panel, not the engine.
| Device or host | Write and compile | Run an EA | Monitor and trade by hand |
|---|---|---|---|
| Desktop terminal with MetaEditor | Yes, in MetaEditor | Yes, while the terminal is open and connected | Yes |
| VPS or hosted terminal | Yes, through a remote desktop session | Yes, designed for 24/7 running | Yes, from any device logged in to the account |
| MT5 iPhone, iPad or Android app | No, use MetaEditor on a PC | Not listed in the mobile help; EAs run in a desktop or hosted terminal | Yes, including market and pending orders |
Hosting, broker and build details vary. Check what your own terminal supports before you rely on it. Sources: Mobile Trading help.
How to create a trading robot in MT5 mobile: build it on desktop first
MetaEditor ships with MetaTrader 5, so you do not install it separately. Write the EA by hand, or use the MQL5 Wizard inside MetaEditor to generate a starter EA from options you select. Compiling produces an EX5 file, the executable that the terminal runs.
- Open MetaEditor from the terminal and write or generate the EA.
- Compile it and fix every error in the error list before you test.
- Run it in the Strategy Tester on historical data. See the Strategy Tester walkthrough.
- Run it on a demo account as a forward test, and keep a trading journal of what it did.
- Only then consider any live use, and only if your broker and any prop firm rules allow it.
Menu names and key shortcuts can vary by build. Check the MetaEditor help for your version. Source: Expert Advisors and Custom Indicators.
Keeping the robot running 24/7
A robot only trades while its terminal runs and stays connected to the broker. You have three ways to keep it running:
- Your own PC. Keep MetaTrader 5 open, the PC awake and the internet connection active. This needs no hosting service, but a power cut, a system update or a sleep setting can stop the robot.
- A forex VPS. A remote Windows server runs MT5 and your EAs while your PC is off. Compare providers on the criteria in the forex VPS guide, and learn to sign in with how to connect to a VPS.
- MetaQuotes virtual hosting. The MetaTrader 5 help describes this as a service for round-the-clock operation of robots and signals. You choose a server and a plan from inside the platform. Read the official terms and current pricing on the help page. This guide does not compare them.
Whichever option you choose, the setup is only as available as its weakest link: the terminal, your connection, the host and the broker’s servers. Check each one.
Monitor the robot from your phone
Install the MT5 app on your phone and sign in to the same account as the desktop or hosted terminal. For alerts from the desktop, open Tools → Options (Ctrl+O), go to the Notifications settings, tick Enable Push Notifications and enter your MetaQuotes ID. The ID is shown in the mobile app’s Messages section. You can enter up to four IDs, separated by commas.
The help says the desktop terminal can also send alerts for successful trade operations, balance operations and margin call status. Menu names vary by build. Source: Platform Settings.
Some brokers also send alerts from their own trade server, which can work while your PC is off. Availability and details depend on the broker.
A notification tells you that something happened. It does not stop the robot, change its inputs or close a position. If you need to act, open the desktop or hosted terminal, or use your broker’s own tools.
Where YO4X fits
YO4X is a Windows desktop workspace for supported MetaTrader 5 strategies, bot configuration and trading journals. It runs on 64-bit Windows 10 and Windows 11. The current desktop workflow is gated to supported MT5 demo accounts, and live-money trading is not released. There is one active strategy per MT5 account in the staged release.
YO4X does not execute EX5 files or arbitrary uploaded code. Local operation needs the PC awake, YO4X open and the connection active. Cloud execution is planned and is not currently available to purchase. Download YO4X for Windows to see the current workflow.
Checks before you rely on a robot you monitor from a phone
- Use only Expert Advisors you wrote, bought or licensed. Never use illegal or unlicensed copies of paid products, including ones marketed as free.
- Check that automated trading is allowed in the terminal and in the EA’s properties. Current builds name the EA option "Allow Algo Trading" (the MT5 help still says "Allow Auto Trading"), and the tab that holds it can vary by build. The toolbar also has an Algo Trading button (AutoTrading in some versions).
- Run the EA on a demo account first, and read the Experts and Journal tabs for errors.
- Keep a record of what the robot did and why you changed it.
Backtests and demo results are evidence to examine, not proof of live results. A phone alert or a 24/7 host does not make a strategy profitable, and no EA predicts the market. Read how to verify a trading bot for what the evidence can and cannot show.
Frequently asked questions
Can I run an Expert Advisor in the MT5 app on my phone?
The official MetaTrader 5 mobile help describes the iPhone, iPad and Android apps for managing your account, viewing charts, using indicators, reading news, receiving notifications and trading manually. It does not describe running Expert Advisors on the phone. Run the robot in a desktop or hosted terminal, and use the phone to watch it.
Can I create a trading robot on my phone?
Writing and compiling are done in MetaEditor on a desktop computer. The phone apps are for monitoring and manual trading. You can still check a robot from your phone once it runs on a desktop or hosted terminal.
Does my PC have to stay on for the robot to run?
If the terminal runs on your own PC, yes: the terminal must be open, the PC awake and the connection active. A forex VPS or MetaQuotes virtual hosting moves the terminal to a remote server, so the robot can keep running when your PC is off. Either way, read the host’s uptime terms and your broker’s rules.
Can YO4X run on my phone?
YO4X is a Windows desktop workspace for supported MetaTrader 5 strategies, bot configuration and trading journals, on 64-bit Windows 10 and 11. Local operation needs the PC awake, YO4X open and the connection active. Cloud execution is planned and is not currently available to purchase.
How do I get trade alerts on my phone from the desktop terminal?
Open Tools → Options in the desktop terminal, enable push notifications on the Notifications settings, and enter the MetaQuotes ID shown in the mobile app. The help says the terminal can send alerts for trade operations and account events. Menu names vary by build, so check your version.
Keep reading
- Best forex VPS: criteria to compare
- How to connect to a VPS
- How to install an EA on MT5
- Run multiple MT5 expert advisors on Windows
- Download YO4X for Windows
Sources: Mobile Trading - MetaTrader 5 Help · Virtual Hosting for 24/7 Operation - MetaTrader 5 Help · Expert Advisors and Custom Indicators - Algorithmic Trading, Trading Robots - MetaTrader 5 Help · Platform Settings - Getting Started - MetaTrader 5 Help
Trading forex and CFDs involves substantial risk of loss. Past performance and backtests do not guarantee future results. Read our risk disclosure before you trade.