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

MT5 Telegram Trade Notifier (Bot API) — Trade Alerts - MetaTrader 5 Expert

author blogger | 486 reads | 0 comments |

MT5 Telegram Trade Notifier (Bot API) — Deal Alerts - expert for MetaTrader 5

Overview
TelegramTradeNotify is a lightweight MT5 utility EA that uses the Telegram Bot API (sendMessage) to send trade execution (trade) notifications to Telegram.

Send alerts about executed trades (TRADE_TRANSACTION_DEAL_ADD)

Optional filter: Buy/Sell only

UTF-8 URL encoding (Vietnamese and emoji supported)

Optionally disable web page preview

Simple input: bot token, chat ID, timeout, prefix

Create a Telegram bot and get the bot token.

Get your target chat ID (user/group) or use @channelusername.

In MetaTrader 5: Tools → Options → Expert Advisor
Enable "Allow WebRequests for listed URLs" and add: https://api.telegram.org

Attach the EA to any chart and set:

Precautions/Troubleshooting

If the WebRequest fails, check your network/firewall/DNS and make sure the URL is allowed in the MT5 options.

Some networks/VPS may block Telegram; switching networks or using a relay server may help.

InpBotToken: Telegram Bot Token

InpChatId: Chat ID or @channelusername

InpSendTestOnInit: Send test message when EA starts

InpNotifyBuySellOnly: Notify buy/sell transactions only

InpTimeoutMs: Web request timeout

InpMsgPrefix: message prefix


Attachment download

📎TelegramTradeNotify.mq5 (14.05 KB)

Source: MQL5 #68014

Refresh