Out of service.
Hi, there!
Here instruction how to send notification to telegram
1. Get Token tmsrv_bot
2. Copy function tms_send() or include tmsrv.mqh
3. Paste your token:
Usage example:
For sure you can use official telegram API, but believe me, that's a pain in the ass when you use it in different projects only just for sending alerts.
I have made tmsrv.pw for my own needs, but decided to share - now a project in development.
Please write if you find a bug or you need some functionality.
Bot commands:
Hi, there!
Here instruction how to send notification to telegram
1. Get Token tmsrv_bot
2. Copy function tms_send() or include tmsrv.mqh
3. Paste your token:
Inserted Code
bool tms_send(string message, string token="YOUR_TOKEN_HERE")
Usage example:
Inserted Code
void OnTick(){ //% if(iRSI(NULL,0,14,PRICE_CLOSE,1)>30 && iRSI(NULL,0,14,PRICE_CLOSE,0)<30) { tms_send(StringFormat("%s RSI is oversold - time to BUY",Symbol())); } if(iRSI(NULL,0,14,PRICE_CLOSE,1)<70 && iRSI(NULL,0,14,PRICE_CLOSE,0)>70) { tms_send(StringFormat("%s RSI is overbought - time to SELL",Symbol())); } }
For sure you can use official telegram API, but believe me, that's a pain in the ass when you use it in different projects only just for sending alerts.
I have made tmsrv.pw for my own needs, but decided to share - now a project in development.
Please write if you find a bug or you need some functionality.
Bot commands:
QuoteDisliked/pause - Pauses sending messages
/play - Resumes sending messages
/token - Send your token
/last - Send 5 last messages
/now - Set bot's working time interval
*
/now not possible to use from the command list, telegram not supported command with parameters
you have to type it see format below:
/now {back} {forward} - set sending time interval form now
Example:
/now -2 6 sending time interval will be set
hour_form = hour_current - 2
hour_to = hour_current + 6