Send notification from MT 4 & 5 to Telegram

0
(0)

Hello, there!

Right here instruction how to ship notification to telegram
1. Get Token tmsrv_bot
2. Copy perform tms_send() or embrace tmsrv.mqh
3. Paste your token:

Inserted Code
bool tms_send(string message, string token="YOUR_TOKEN_HERE")

Utilization instance:

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",Image()));    
   }
  
   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",Image()));
   }
}

For certain you need to use official telegram API, however imagine me, that is a ache within the ass once you use it in several initiatives solely only for sending alerts.

I've made tmsrv.pw for my very own wants, however determined to share - now a challenge in growth.
Please write in case you discover a bug otherwise you want some performance.

Bot instructions:

/pause - Pauses sending messages
/play - Resumes sending messages
/token - Send your token
/final - موڪليو 5 final messages
/now - Set bot's working time interval

*
/not potential to use from the command checklist, telegram not supported command with parameters
you've gotten to sort it see format under:
/now {again} {ahead} - set sending time interval type now

Instance:
/now -2 6 sending time interval will probably be set
hour_form = hour_current - 2
hour_to = hour_current + 6

Overlook to say you've gotten to add API URL to Choices -> see image:
ڳنڍيل تصوير
Send notification from MT 4 & 5 to Telegram 1
Right here is demo EA

1. add URL( https://tmsrv.pw/ship ) to Allowed see publish above
2. Paste your token instantly to perform parameter:

ڳنڍيل تصوير
Send notification from MT 4 & 5 to Telegram 2

Right here MQL4 script:

Connected File
File Type: mq4 demo_tmsrv.mq4 5 KB | 427 downloads
It appears to work fantasticSend notification from MT 4 & 5 to Telegram 3
Connected File
File Type: mq4 demo_tmsrv_positions.mq4 9 KB | 39 downloads

پڙهو  FX Venom Pro – Get 50-120 Pips Everyday

هي پوسٽ ڪيترو مفيد هو?

ان جي شرح ڪرڻ لاء هڪ اسٽار تي ڪلڪ ڪريو!

سراسري درجه بندي 0 / 5. ووٽن جي ڳڻپ: 0

هن وقت تائين ڪوبه ووٽ ناهي! هن پوسٽ جي درجه بندي ڪرڻ لاء پهريون ٿيو.

اسان کي افسوس آهي ته هي پوسٽ توهان لاء مفيد نه هئي!

اچو ته هن پوسٽ کي بهتر بڻايون!

اسان کي ٻڌايو ته اسان هن پوسٽ کي ڪيئن بهتر ڪري سگهون ٿا?



ليکڪ: فاریکس وڪي ٽيم
اسان انتهائي تجربيڪار فاریکس واپارين جي ٽيم آهيون [2000-2023] جيڪي اسان جي پنهنجي شرطن تي زندگي گذارڻ لاءِ وقف آهن. اسان جو بنيادي مقصد مالي آزادي ۽ آزادي حاصل ڪرڻ آهي, ۽ اسان خود تعليم حاصل ڪئي آهي ۽ فاریکس مارڪيٽ ۾ وسيع تجربو حاصل ڪيو آهي جيئن اسان جو مطلب هڪ خودمختاري واري زندگي گذارڻ جي لاءِ آهي..