Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Send message to telegram from Metatrader - MetaTrader 4 script

author EAcpu | 3 reads | 0 comments |

Send a message from metatrader to telegram - script for MetaTrader 4

Using this script you can send messages to Telegram from MetaTrader 4.

Place the code in the Scripts directory.

From Main Menu -> Tools -> Options, tab Expert Advisor , add the following address allow URL part:

 https://api.telegram.org

Customize the following variables in your code:

Get the bot token @BotFather and enter it into the following variable:

 string token = "xxxxxxxxxxxxxxx" ;

Get the chat ID of the recipient @userinfobot and enter it into the following variable:

 String Chat ID = "xxxxx" ;

Enter the desired message in the following variables:

 string message = "Salam@JahanChart" ;

Be sure to test on an external server that does not have filtering issues, or if testing on your system, connect a filter breaker that all network traffic passes through. (Enabling MetaTrader internal broker does not help)

Send a message from metatrader to telegram - script for MetaTrader 4

#Code #MetaTrader #Telegram #cryptocurrency #cryptocurrency #cryptocurrency #cryptocurrency


Attachment download

📎 send_telegram.mq4 (2.42 KB)

📎 stderror.mqh (9.81 KB)

📎 stdlib.mqh (0.65 KB)

Source: MQL5 #32980

Verification code Refresh