Send notifiion from MT 4 and 5 to Telegram
Results 1 to 7 of 37

Thread: Send notifiion from MT 4 and 5 to Telegram

  1. #1
    Hi!

    Here eduion how to send notifiion to telegram
    1. Get Token https://telegram.me/tmsrv_bot
    2. Duplie function tms_send() or include https://github.com/mikolyk/mqltms/blob/master/tmsrv.mqh
    3. Paste your own token: Inserted Code bool tms_send(string message, string token=YOUR_TOKEN_HERE)
    Use example:
    Inserted Code void OnTick() //% if(iRSI(NULL,0,14,PRICE_CLOSE,1)gt;30 iRSI(NULL,0,14,PRICE_CLOSE,0)lt;30) tms_send(StringFormat(%s RSI is oversold - moment to BUY,Symbol())); if(iRSI(NULL,0,14,PRICE_CLOSE,1)lt;70 iRSI(NULL,0,14,PRICE_CLOSE,0)gt;70) tms_send(StringFormat(%s RSI is overbought - moment to SELL,Symbol()));
    For sure you can utilize official telegram API, but believe me, that's a pain in the ass if you use it in different projects only just for sending alarms.

    I've made https://tmsrv.pw/ for my wants, but decided to share - now a project in development.
    Please write if you find a bug or you need any functionality.

    Bot controls:
    Quote Originally Posted by ;
    /pause - Pauses sending messages
    /play - Resumes sending messages
    /token - Send your token
    /final - Send 5 final messages
    /today - Establish bot's working time period

    *
    /now not possible to use from the control list, telegram not supported control with parameters
    you Must type it view format below:
    /now back forward - set sending time period form now

    Example:
    /now -2 6 sending time period will be set
    hour_form = hour_current - two
    hour_to = hour_current 6

  2. #2
    Forget to state you have to include API URL to Options see image:

  3. #3
    This is demonion EA

    1. Include URL(https://tmsrv.pw/send) to Allowed see post above
    2. Glue your token directly to function parameter:


    Here MQL4 script:
    https://www.forexsoutheast.asia/atta...2059671722.mq4

  4. #4
    Thank you to this script. . working. . Will check on monday

  5. #5
    Another options:
    1. Https://storebot.me/bot/email2telegrambot
    Email2Telegram creates a special email address. So you ust have to utilize this email in your normal to address at the mt email setup

    2. Https://t.me/gmailbot
    This will alow you to fully manage your linked gmail account. So that your mt4 getting address will forward for your telegram.

  6. #6
    Quote Originally Posted by ;
    Another options: 1. Https://storebot.me/bot/email2telegrambot Email2Telegram creates a special email address. So you ust have to use this email in your regular to address in the mt email installation two. Https://t.me/gmailbot This will alow you to fully manage your linked gmail account. So your mt4 getting gmail address will forward for your telegram.
    That's true, it's also a good way to send a notifiion. I created this support it's simple integration in every language, I don't enjoy use mails and the most important reason and I will add.

  7. #7
    I'm curious why you're using an unidentified party middleman to relay your messages? Why don't you just use the telegram api?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.