possible to send MT4 notification when account is disconnected from server?

 

Don't want rent a VPS, use local machine to run EA. However the local network is not stable and might get disconnected (sometimes it lasts forever until take human action). I want to ensure that when network is disconnected and lasts for given threshold then send notification to mobile (which should almost never lose network). But as you know, it is not possible to 'actively' send a notification when the sender is offline. Also, I'm not expecting message pollution ways, like use SendNotification() to the mobile every few minutes, whenever it doesn't, it means disconnecting.


So is there any alternative ways?

Documentation on MQL5: Network Functions / SendNotification
Documentation on MQL5: Network Functions / SendNotification
  • www.mql5.com
true if a notification has been successfully sent from the terminal; in case of failure returns false. When checking after a failed push of notification, GetLastError () may return one of the following errors: Strict use restrictions are set for...
 
If you are disconnected from the server, most likely your internet is down. You can not send notification if you don't have a connection.
 
Don't want rent a VPS, use local machine to run EA

If you want stable connection unfortunately your only option is to rent a VPS but this does not mean you need to rent a MQL5 vps....there are many other providers out there,just use a search engine. Check with your broker as they in most cases offer a free vps to their clients ( with some terms and conditions attached ).

Kinda logic isn't it - if your terminal has no connection to the server, how could it be possible for the terminal to send notifications to your mobile device...

Reason: