• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 5:59pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 5:59pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

ECN && STP && Scalping && Hedging - Broker Review - Oct 2009 24 replies

MT4 can't send email notification with hMailServer 0 replies

MT4 E-Mail Notification 4 replies

Meta Trader SMS notification 2 replies

Mobile notification of your emails (Yahoo/Hotmail) 2 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 36
Attachments: Send notification from MT 4 & 5 to Telegram
Exit Attachments

Send notification from MT 4 & 5 to Telegram

  • Last Post
  •  
  • 1 Page 23456 10
  • 1 Page 234 10
  •  
  • Post #21
  • Quote
  • Aug 11, 2018 8:15am Aug 11, 2018 8:15am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting Impenia
Disliked
{quote} You were right bro. I was trying to add it to Group. I've now successfully added the bot to Channel now but can't seem to get alerts to the Channel. Seems I'm not able to get the bot started in the Channel.
Ignored
Send a screen after you sent command /strat inside the channel
  • Post #22
  • Quote
  • Aug 11, 2018 10:14am Aug 11, 2018 10:14am
  •  Emerald2112
  • | Joined Mar 2014 | Status: Member | 392 Posts
Wont load..says wrong token. Have a pasted it correctly?
Attached Image (click to enlarge)
Click to Enlarge

Name: Telegram1.png
Size: 95 KB
  • Post #23
  • Quote
  • Aug 11, 2018 10:19am Aug 11, 2018 10:19am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting MrFANKA
Disliked
1) CopyPasted the Function in my Indicator 2) Edited the Token like {MyToken} 3) Added "https://tmsrv.pw/send" in MT4 WebRequest list 4) tms_send(StringFormat("%s RSI is overbought - time to SELL",Symbol())); Dont receive anything anywhere. I am new in Telegram, can somebody help me?
Ignored
Here is a quick solution, I think it will work.
You can send only those characters: A..z,0-9 [email protected]#$%^&*()"'< > [] {} ., if you need Line Feed use \n in string


How to use:
Download & Save tmsrv_wininet.mqh to {MQL4}\include\
In indicator code:
Inserted Code
#include <tmsrv_wininet.mqh>
...
...
int OnInit(void) {
     tms_send("I can send msg \n from indicator","YOUR_TOKEN_HERE");
}

Do not forget to allow DLL import in options
Attached File
File Type: mqh tmsrv_wininet.mqh   15 KB | 1,238 download
  • Post #24
  • Quote
  • Aug 11, 2018 10:21am Aug 11, 2018 10:21am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting Emerald2112
Disliked
Wont load..says wrong token. Have a pasted it correctly? {image}
Ignored
For sure it is wrong token looks like telegram_id:hash - 93464398:FGjgdgr4fd
  • Post #25
  • Quote
  • Aug 11, 2018 10:28am Aug 11, 2018 10:28am
  •  Emerald2112
  • | Joined Mar 2014 | Status: Member | 392 Posts
I initially had it as 93464398:FGjgdgr4fd but that didn't work. How is it written in the actually script
  • Post #26
  • Quote
  • Aug 11, 2018 10:34am Aug 11, 2018 10:34am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting Emerald2112
Disliked
I initially had it as 93464398:FGjgdgr4fd but that didn't work. How is it written in the actually script
Ignored
try to send without {} just your token
like this :
Inserted Code
  tms_send("Signal BUY","157246200:414a033f");
but use your token
  • Post #27
  • Quote
  • Aug 11, 2018 2:34pm Aug 11, 2018 2:34pm
  •  Impenia
  • Joined Nov 2015 | Status: Member | 121 Posts
Quoting AleksandrM
Disliked
{quote} Send a screen after you sent command /strat inside the channel
Ignored
The first screenshot is the bot working excellently...sending alerts from the script as expected. The second screenshot is the channel after adding the bot to the channel. The token generated in the channel (second screenshot) is different from the token on the first screenshot. When I use this second (channel) token in the script, I get an error message that token is wrong.
Attached Images
Simplicity Is The Ultimate Sophistication!
  • Post #28
  • Quote
  • Aug 12, 2018 4:51am Aug 12, 2018 4:51am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting Impenia
Disliked
{quote}The first screenshot is the bot working excellently...sending alerts from the script as expected. The second screenshot is the channel after adding the bot to the channel. The token generated in the channel (second screenshot) is different from the token on the first screenshot. When I use this second (channel) token in the script, I get an error message that token is wrong. {image} {image}
Ignored
1. Send me your token to PM
2. Here in the bottom test form use it for testing.
3. Use if to catch errors inside mql and check logs.

Inserted Code
 if(!tms_send("text " ,"token") ) {
   // Error Handling...
   // MessageBox("Something went wrong, check the log");
 }
  • Post #29
  • Quote
  • Aug 12, 2018 4:59am Aug 12, 2018 4:59am
  •  Kingsman888
  • | Joined Aug 2018 | Status: Junior Member | 2 Posts
Where Can I can find this indicator encircled in your image. Emerald
Attached Image (click to enlarge)
Click to Enlarge

Name: 2018-08-12 16_48_09-__._DISPLAY1.png
Size: 49 KB
  • Post #30
  • Quote
  • Aug 22, 2018 10:23am Aug 22, 2018 10:23am
  •  ac24365
  • | Joined May 2017 | Status: Junior Member | 1 Post
Quoting AleksandrM
Disliked
{quote} Here is a quick solution, I think it will work. You can send only those characters: A..z,0-9 [email protected]#$%^&*()"'< > [] {} ., if you need Line Feed use \n in string How to use: Download & Save tmsrv_wininet.mqh to {MQL4}\include\ In indicator code: #include <tmsrv_wininet.mqh> ... ... int OnInit(void) { tms_send("I can send msg \n from indicator","YOUR_TOKEN_HERE"); } Do not forget to allow DLL import in options {file}
Ignored
Hello
I have tried putting this in my code but am getting an error. Pls see attached file. Pls advise. Thanks
Attached Images (click to enlarge)
Click to Enlarge

Name: Part of my code.jpg
Size: 16 KB Click to Enlarge

Name: Error.jpg
Size: 17 KB
Attached Image
  • Post #31
  • Quote
  • Sep 10, 2018 11:32am Sep 10, 2018 11:32am
  •  bananakid
  • | Joined Mar 2014 | Status: Member | 13 Posts
Hi AleksandrM,

Can you kindly modify your EA just to send opened, closed trades and orders to telegram instead?

The format can be exactly like the MT4 Trade Notification we get via the MT4 push notifications to our mobile devices. Thank you.

Regards,
BK
  • Post #32
  • Quote
  • Sep 10, 2018 2:42pm Sep 10, 2018 2:42pm
  •  khelemen
  • | Joined Jan 2009 | Status: Member | 124 Posts
Thanks, nice job!!
  • Post #33
  • Quote
  • Sep 11, 2018 8:14am Sep 11, 2018 8:14am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting bananakid
Disliked
Hi AleksandrM, Can you kindly modify your EA just to send opened, closed trades and orders to telegram instead? The format can be exactly like the MT4 Trade Notification we get via the MT4 push notifications to our mobile devices. Thank you. Regards, BK
Ignored
Hello, Bananakid!

I never trying native mt4 push before.
So, you want to receive messages
- When the order opened (symbol, lot, buy or sell)
- When the order closed(symbol, lot, buy or sell, profit)
Am I right?
  • Post #34
  • Quote
  • Sep 11, 2018 8:14am Sep 11, 2018 8:14am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting khelemen
Disliked
Thanks, nice job!!
Ignored
Thanks
  • Post #35
  • Quote
  • Sep 11, 2018 8:29am Sep 11, 2018 8:29am
  •  bananakid
  • | Joined Mar 2014 | Status: Member | 13 Posts
Quoting AleksandrM
Disliked
{quote} Hello, Bananakid! I never trying native mt4 push before. So, you want to receive messages - When the order opened (symbol, lot, buy or sell) - When the order closed(symbol, lot, buy or sell, profit) Am I right?
Ignored
Hi AleksandrM,

Yes, that is correct + comment (in order to identify the respective trades)

When the order opened (symbol, lot, buy or sell, comment) - When the order closed(symbol, lot, buy or sell, profit, comment)

Thank you very much.
  • Post #36
  • Quote
  • Sep 11, 2018 8:34am Sep 11, 2018 8:34am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting bananakid
Disliked
{quote} Hi AleksandrM, Yes, that is correct + comment (in order to identify the respective trades) When the order opened (symbol, lot, buy or sell, comment) - When the order closed(symbol, lot, buy or sell, profit, comment) Thank you very much.
Ignored
Ok, give me a couple of days, now I am a bit busy.
  • Post #37
  • Quote
  • Sep 12, 2018 3:39am Sep 12, 2018 3:39am
  •  AleksandrM
  • | Joined May 2016 | Status: Member | 43 Posts
Quoting bananakid
Disliked
{quote} Hi AleksandrM, Yes, that is correct + comment (in order to identify the respective trades) When the order opened (symbol, lot, buy or sell, comment) - When the order closed(symbol, lot, buy or sell, profit, comment) Thank you very much.
Ignored
It seems to work fine
Attached File
File Type: mq4 demo_tmsrv_positions.mq4   9 KB | 1,101 download
  • Post #38
  • Quote
  • Sep 12, 2018 4:36am Sep 12, 2018 4:36am
  •  bananakid
  • | Joined Mar 2014 | Status: Member | 13 Posts
Quoting AleksandrM
Disliked
{quote} It seems to work fine {file}
Ignored
Hi AleksandrM,

Thank you! This is exactly what i wanted.

I think i am facing the same issue Impenia had, the trade notifications were sent to the Telegram bot. But I cannot get it to send to my Telegram channel.

Now I have input my channel token onto the https://tmsrv.pw and my channel is getting the test messages but not the trade notifications.

Any idea what could be the reason?

Regards,
BK
  • Post #39
  • Quote
  • Sep 12, 2018 4:42am Sep 12, 2018 4:42am
  •  bananakid
  • | Joined Mar 2014 | Status: Member | 13 Posts
Quoting bananakid
Disliked
{quote} Hi AleksandrM, Thank you! This is exactly what i wanted. I think i am facing the same issue Impenia had, the trade notifications were sent to the Telegram bot. But I cannot get it to send to my Telegram channel. Now I have input my channel token onto the https://tmsrv.pw and my channel is getting the test messages but not the trade notifications. Any idea what could be the reason? Regards, BK
Ignored

I found the reason;

The correct token to input onto your MT4 EA should be my Channel Token.

I had used the Bot token previously.

All good now. Have a fantastic day ahead!
  • Post #40
  • Quote
  • Sep 14, 2018 5:26am Sep 14, 2018 5:26am
  •  shiva
  • Joined Aug 2007 | Status: Doing It In Dubai | 2,447 Posts
Quoting AleksandrM
Disliked
{quote} It seems to work fine {file}
Ignored
Thanks Aleksandr, this works great, but the messages are going to your bot, not to my channel. How do I make these messages show in my channel?
  • Platform Tech
  • /
  • Send notification from MT 4 & 5 to Telegram
  • Reply to Thread
    • 1 Page 23456 10
    • 1 Page 234 10
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2021