MT4 Push Notifications

 

Many traders repeatedly ask for SMS alerts on their phones. That solution is now outdated with MetaQuotes release of build 445, which introduces MT4 push notifications.

MT4 Push Notifications

SMS alerts are a headache to set up in MT4. The great thing about push notifications is that they look exactly like an SMS message and require very little effort. The only difference is that MT4 push notifications show up with the MetaTrader logo.

These alerts only show up if you modify the source code of your expert advior or custom indicator. It’s as simple as programming can possibly get. Everywhere in the code where the word “Alert” or “SendEmail” appears, add a new line with “SendNotification()”. More details on push notifications are available in the MQL4 documentation.

MT4 push notifications appear in the status bar

An image of a test alert sent to my Android phone

The steps to set up push notifications are straight forward. Start by obtaining the MetaQuotes ID.

Open MT4 on your Android or iPhone. When the application loads, access the settings button. I did this on my LG Optimus V by clicking the left most button. Your phone will more than likely have that button in another location.

Once you open settings, scroll down until you find the MetaQuotes ID. Write this number down and save it in another location.

MetaTrader mobile MetaQuotes ID

The item covered in red shows the MetaQuotes ID. You’ll need this number to enable push notifications to your Android or iPhone

Open MetaTrader 4 on your desktop or VPS. Go to Tools, then select Options.

Tools Options in MT4

At the top of the screen in MetaTrader 4, click on the word “Tools”, then on “Options”.

A new window pops up. Select the tab labeled Notifications. Put a check mark next to the word “Enable Notifications”. Type in the MetaQuotes ID that you saved in the first step.

MT4 Notifications tab

The MT4 notifications tab on the desktop sets up the ability to push notifications to your phone. Put a check next to “Enable” and make sure to type in the MetaQuotes ID that matches your phone.

Now that you’re finished, make sure that it works by pressing the Test button. You should receive a message on your phone within 5-10 seconds. The actual delivery time of the message depends entirely on your reception area and carrier.

Delayed notifications

Alerts on the desktop version of MetaTader are instantaneous. Email, SMS and MT4 push notifications can take substantially longer. The best case scenario is 1 second. Somtimes, it might take a network 20-30 seconds to receive the alert.

The notifications are fantastic for general tasks like tracking an expert advisor’s open trades.

If you need to place trades within seconds of receiving an alert, this setup is not for you. The latency between sending and receiving a message is far too great.

 
MT4 Push Notifications

Share this Post

 

Tags

, , , ,

Related Posts

About the author

Shaun is a passionate and proud nerd on a wide variety of topics, most of which have absolutely nothing to do with each other. He loves math and systems, which makes him a natural fit for designing trading systems. The most random fact about him is that he speaks fluent Arabic.Shaun's hobbies are running, church and spending as much time as possible with his wife and young son.

 
 

13 Comments

  1. Tim says:

    Very cool newer MT4 feature.
    I have just a typical, inexpensive cellphone that is neither an iPhone, nor android. Even so, since I can use it to send/receive text (SMS) messages, is there a way to easily get an MT4 EA to send text notifications to a non-apple/non-android phone?

    • Hey Tim,

      Thanks for your question. You can set up email alerts within MT4, which are sent to your cell phone. Most cell providers offer the ability to email an SMS message.

      This is an example of how to do it with AT&T. You can do a similar search for your carrier.

  2. krishna says:

    For MT5 give me push notification code for iphone or give me Demo EA..plz co operate

    krishna

  3. Andrew says:

    Push notifications were working fine, but now have stoped “Notifications failed send request 0″. It is a demo account so I am wondering if that has something to do with it?

    • Hey Andrew,

      Thanks for letting me know the message. My first instinct is to look up the error code. The text that you typed doesn’t match any of the error codes in MetaTrader. Can you email me a screenshot of wherever you see that text?

  4. Folarin Kehinde says:

    Hi this is just what I have been looking for, please I have an indicator I want to add the SendNotification() to, I dont want to mess this up ad I do not have any knowledge about coding please what do I do? do you have any recomendations?
    Regards

  5. Richard says:

    There is an ‘ea’ which can send you push notifications, and not in text/sms but to the mt4 app in your smartphone. Try ‘notifier ea’, i am using it for more than 7 months now, cheap and good to get push notifications.

  6. Lani says:

    Thanks, I’ve used notifier ea and push notification works well. The problem in mt4 iPhone, how to delete the Messages?
    Now hundreds of messages piled up
    In Android we can do easily.
    Kindly advice

 

Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>