MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Subscribe to signal
AlfaScalp
82.92%, 91.46 USD
ytg_Change_Price_Percent Indicator
ytg_Change_Price_Percent
Author: GODZILLA
Screenshot
GBPUSD, H1
Demo
FT SmoothFT Smooth Try product
FT Smooth
Author: ForexTools
How to Copy Trading from MetaTrader 5 to MetaTrader 4 How to Copy Trading from MetaTrader 5 to MetaTrader 4

SendNotification

Sends push notifications to the mobile terminals, whose MetaQuotes IDs are specified in the "Notifications" tab.

bool  SendNotification(
   string  text          // Text of the notification
   );

Parameters

text

[in]   The text of the notification. The message length should not exceed 255 characters.

Return Value

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:

4515 – ERR_NOTIFICATION_SEND_FAILED,

4516 – ERR_NOTIFICATION_WRONG_PARAMETER,

4517 – ERR_NOTIFICATION_WRONG_SETTINGS,

4518 – ERR_NOTIFICATION_TOO_FREQUENT.

Note

Strict use restrictions are set for the SendNotification() function: no more than 2 calls per second and not more than 10 calls per minute. Monitoring the frequency of use is dynamic. The function can be disabled in case of the restriction violation.


Updated: 2012.05.28