SMS Library

Click here to download the SMS library

The SMS Library is a DLL which developers can use to add SMS alerts to any EA or indicator. (This library forms the basis of our TradeTalk EA for traders, and the SMS notifications in our auto-restart tool.)

All SMS is sent asynchronously - i.e. without blocking the execution of the EA/indicator. Nevertheless, delivery to recipients typically takes less than 5 seconds. This is not only substantially faster than using an email-to-SMS gateway, but is also more reliable, more flexible, and easier to configure.

The library caters for multiple SMS recipients, and automatically splits long messages over multiple texts (i.e. messages exceeding 160 characters).

Adding SMS functionality to your EA or indicator simply consists of adding the following function imports to your MQL4 code:

// Imports from the SMS library 
#import "MT4SMSAlert.dll"
    int SendSMS_Asynchronous(int Carrier, string Username, string Password, string APICode, string Recipients, string SMSText, int Flags);
    int SendSMS_Synchronous(int Carrier, string Username, string Password, string APICode, string Recipients, string SMSText, int Flags);
    int CheckAsyncSMSResult(int Handle);
    string GetLastGatewayError();
#import

The SMS transmission requires an account with Clickatell.com. However, on request we can tailor the DLL to work with almost any online SMS provider.