One thing that used to drive me crazy was sitting in front of my desktop, watching a trade hit my take-profit level, while I was away from my desk making coffee. I'd come back, see the trade was closed, but I had no idea when it happened or why. That's when I finally took 10 minutes to set up push notifications properly.
The official MetaTrader 5 Help Center covers the basics of notifications, but it buries the critical detail about finding your MetaQuotes ID deep in the mobile app settings. Here's the step-by-step that actually works.
Step 1: Get your MetaQuotes ID on Mobile
This is the most common stumbling block. Every device gets a unique MetaQuotes ID when you install the app [citation:9]. To find yours:
Some people think this is just for MQL5 community messages. It's not. This ID is like your phone number for receiving any push notification from any MT5 service, including your desktop platform [citation:9][citation:11].
Step 2: Configure Desktop MT5 to Send Notifications
Open your desktop MT5. Go to Tools > Options > Notifications tab [citation:10].
Here's the setup:
- Local terminal notifications: The desktop platform sends notifications about your trades while MT5 is running. Good for when you're at your computer but step away briefly.
- Trade server notifications: This is the game-changer. The notification is sent directly from your broker's server, meaning you get alerts even if your desktop platform is completely closed [citation:10]. This saved me more than once when I had to shut down my PC but wanted to know if my stop-loss got hit.
The Hidden Detail Nobody Mentions
The official docs mention you can test notifications with the "Test" button. But what they don't emphasize enough: trade server notifications aren't available with all brokers. The platform logs will show what notification types your broker supports when you enable the option. You'll see something like:
'1222': subscribe to trade, order, balance notifications from trade server [citation:10]. If you don't see this line, your broker doesn't support it, and you'll have to rely on local notifications only.Step 3: Using Notifications in EAs and Alerts
Beyond trade notifications, you can also:
SendNotification() in your own MQL5 Expert Advisors to send custom alerts about anything—indicator signals, news events, or even "heartbeat" pings to confirm your EA is still running [citation:10].Limitation to Know
There's a rate limit: no more than 1 message per half-second, and no more than 10 per minute [citation:10]. So if your EA is trying to spam notifications during a volatile market, you'll hit the cap and miss important ones.
Reference: MetaTrader 5 Help - Notifications (metatrader5.com).
This article was originally published on FXEAR.com. All rights reserved. Unauthorized reproduction is prohibited.