The Expert Advisor will help you forward all alert from MetaTrader 4 to Telegram channel/ group.
All alert must save to folder <Data folder>MQL4\Files\Alerts\ , text file with format *.txt and screenshot with format *.png.
Parameters
- Telegram Bot Token - create bot on Telegram and get token.
- Telegram Chat ID - input your Telegram user ID, group / channel ID
- Forward Alert - default true, to forward alert.
- Send message as caption of Screenshot - default false, set true to send message below Screenshot .
- Forward Screenshot - default true, to forward screnshot.
Important Note
- 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 it to one chart only.
- Only work with MT4 use English language.
- 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.
- Open he channel/group Info, then Manage, Add Administrators, type the bot username, and click Save
- Send any message to the channel/group like "hello world"
- Open the following URL in a browser: https://api.telegram.org/bot<your bot token>/getUpdates
- Search for the string "chat":{"id": to find a large negative number. This is your chat ID
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.
It only work with Forward Alert To Telegram, only work with MT4 use English language.
Files: