HOW TO SETUP FORWARD ALERT TO TELEGRAM MT5

1 December 2021, 09:29
Trinh Dat
1
1 529

For the product https://www.mql5.com/en/market/product/51784


- You must allow WebRequest and add the  https://api.telegram.org URL in "Tools" → "Options" → "Expert Advisors".

- Telegram Bot must is member of group or admin of channel.

- Attach the EA and Indicator Alert To File v2.3 to one chart only.

- Telegram API not work with Windows 7 or lower.


How to get an chat ID:


- Chat with BotFather to create Bot and get API Token of Bot. If you had Bot, skip the step.

- Open the channel/group Info, then Manage, Add Administrators, type the bot username, and click Save

- Send any message to the channel/group like "hello world"

- chat with bot @userinfobot , then forward message on your channel to bot @userinfobot , the bot will reply your channel ID.

Example on picture below: chat ID is minus number -1001448215625


Other way to get Chat ID: use link https://api.telegram.org/bot{token}/getUpdates

then replace {token} by Bot token which you get from Bot Father , open link with Internet browser  or chrome



Notes:


The indicator below is supported to customer to auto create file of alerts, need "Allow DLL imports" when use the indicator,

use comma to filter indicators, symbols, timeframe.


Files: