MT5 guide

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

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.

Three device cards compare a desktop terminal, a VPS or hosted terminal, and the MT5 mobile app. The desktop and hosted terminals can run an Expert Advisor, while the mobile app can monitor the account and trade by hand but is not described as running one.
Concept diagram, not an app screenshot.
Where each part of the workflow happens
Device or hostWrite and compileRun an EAMonitor and trade by hand
Desktop terminal with MetaEditorYes, in MetaEditorYes, while the terminal is open and connectedYes
VPS or hosted terminalYes, through a remote desktop sessionYes, designed for 24/7 runningYes, from any device logged in to the account
MT5 iPhone, iPad or Android appNo, use MetaEditor on a PCNot listed in the mobile help; EAs run in a desktop or hosted terminalYes, 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.

  1. Open MetaEditor from the terminal and write or generate the EA.
  2. Compile it and fix every error in the error list before you test.
  3. Run it in the Strategy Tester on historical data. See the Strategy Tester walkthrough.
  4. Run it on a demo account as a forward test, and keep a trading journal of what it did.
  5. 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:

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

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

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.