indicator send SMS to phone ( if price reach a value )

 

hi , every body

i want to write an indicator :

if price reach a value then ,

send SMS to mobile phone

can you please guideline ?

thank you

 

Any ideas?
 
You cannot do that withing MQL5 without using some 3rd party API.
 
enivid:
You cannot do that withing MQL5 without using some 3rd party API.

hi

" without using some 3rd party API. " ?!!!

what do you mean ?

can you please explain ?

 
Google "SMS API".
 

One of recently added features is a possibility of receiving notifications on a mobile device based on iOS or Android.

In you Profile->Contacts, you can find a new field - MetaQuotes ID. Here is its description:

MetaQuotes ID is used to receive messages from MetaQuotes services in your MetaTrader 5 mobile terminal (currently for iPhone only).
These messages have several benefits against SMS. They are delivered instantly, they are never lost on their way
and they come directly to the MetaTrader 5 mobile terminal installed on your device.
You can download MetaTrader 5 mobile terminal from App Store (iPhone version) or from Google Play (Android version).
In order to obtain MetaQuotes ID, go to the Messages section of your MetaTrader 5 mobile terminal (currently for iPhone only).

In one of the nearest build, a new function for sending notifications will be added to MQL5. So a trader will be able to send notifications to a mobile device from a MQL5 application (EAs or scripts).

 
Also I have a notification program that also sends to my iphone
The problem with metatrader is that the feature does not yet exist in MT5
I also have the financial calendar results already by notification
 

Download gammu

 http://wammu.eu/download/gammu/win32/ 

 see what command line options it needs(I can't remember, I ended up writing my sms program in C#)

 And in metatrader 5 use 

#import "shell32.dll"

 

int ShellExecuteA(int hWnd,int lpVerb,string lpFile,string lpParameters,int lpDirectory,int nCmdShow)

ShellExecuteA(0,0,"gammu.exe","gammu options",SW_SHOW); 

 

Call gammu and pass it parameters 

Gammu (Windows binary) - Download
  • Michal Čihař
  • wammu.eu
Website of Gammu and Wammu, the software for managing GSM cell phones.
 

And to make it easier use gammu-smsd 

 http://wammu.eu/docs/pdf/smsd.pdf 


Configure gammu as a windows service, it will look for text files in a folder to send as sms and it will read sms from another folder and write them to a text file.

That way you only have to focus on reading/writing files

 

This required a gsm modem though.

 I use a 3g dongle for sms, because they can send and receive.

you can use an old phone as well 

 

thank all
Reason: