MT5 to Telegram Informer
- Yardımcı programlar
- Juergen Marcus Wolfgang Rosswinkel
- Sürüm: 2.38
- Güncellendi: 23 Şubat 2026
- Etkinleştirmeler: 5
MT5 to Telegram Signal Provider
Real-time trade notifications for MetaTrader 5
Overview
MT5 to Telegram Signal Provider is a utility Expert Advisor for MetaTrader 5 that automatically sends trade notifications to one or more Telegram chats or channels. Every trade action that occurs on the account is captured and delivered as a formatted message in real time.
The EA runs on any chart and monitors the entire account. It does not place, modify, or close any orders. Its only function is to observe trade events and report them.
What Gets Reported
The EA detects and reports the following trade events:
Market order opened (buy or sell)
Market order closed, including the result in the account currency
Stop Loss or Take Profit modification on any open position
Pending order placed (buy/sell limit, buy/sell stop)
Pending order triggered and filled
Pending order cancelled
Optional daily summary report at a configurable time
Message Content
Each notification contains the relevant information for that event type. A trade open message includes symbol, direction, lot size, entry price, stop loss, take profit, ticket number, comment, and time. A trade close message additionally shows the open price, close price, pip result, and profit or loss in the account currency.
Messages are formatted in HTML with bold field labels for readability. A separator line appears at the top and bottom of each message. An optional account info line can be appended showing the account number and balance.
An optional chart screenshot is captured and sent to Telegram alongside each trade open and close notification.
Setup Instructions
Step 1 - Create a Telegram Bot
Open Telegram and start a conversation with @BotFather. Use the /newbot command to create a new bot. Copy the bot token that BotFather provides.
Step 2 - Get Your Chat ID
For a private chat with the bot: start a conversation with your bot, then retrieve your chat ID from @userinfobot. For a Telegram channel: add the bot as an administrator of the channel and use the channel username (e.g. @mysignals) as the Chat ID.
Step 3 - Allow WebRequests in MT5
In MetaTrader 5, open Tools > Options > Expert Advisors. Enable the option "Allow WebRequests for listed URL" and add the following URL to the list:
Step 4 - Attach the EA
Drag the EA onto any chart. Enter your Bot Token in the TG_BotToken field and your Chat ID in the TG_ChatID1 field. If the connection is successful, a green status label appears in the top-left corner of the chart and a startup message is sent to Telegram.
Input Parameters
Telegram Configuration
Parameter Default Description
TG_BotToken (empty) Bot token obtained from @BotFather. Required.
TG_ChatID1 (empty) Primary Telegram chat or channel ID. Required.
TG_ChatID2 (empty) Second chat ID. Optional.
TG_ChatID3 (empty) Third chat ID. Optional.
Message Events
Parameter Default Description
Ev_OnOpen true Send a notification when a market order is opened.
Ev_OnClose true Send a notification when a position is closed.
Ev_OnModify true Send a notification when Stop Loss or Take Profit is changed.
Ev_OnPendingSet true Send a notification when a pending order is placed.
Ev_OnPendingFill true Send a notification when a pending order is triggered and filled.
Ev_OnPendingCancel true Send a notification when a pending order is cancelled.
Ev_DailyReport false Send an automated daily summary at the configured hour.
Ev_ReportHour 20 Hour of day (0-23) at which the daily report is sent.
Filters
Parameter Default Description
F_AllowedSymbols (empty) Comma-separated list of symbols to monitor. Leave empty to monitor all symbols. Example: XAUUSD,EURUSD
F_BlockedSymbols (empty) Comma-separated list of symbols to ignore.
F_MagicNumber -1 Only report trades with this magic number. Set to -1 to report all trades regardless of origin.
F_Comment (empty) Only report trades whose comment contains this text. Leave empty to report all.
Message Format
Parameter Default Description
Fmt_ProviderName MY SIGNALS Name shown at the top of every notification.
Fmt_ShowAccount true Append account number and currency to each message.
Fmt_ShowEquity false Append balance and equity to each message.
Fmt_ShowPips true Include pip result in trade close messages.
Fmt_UseEmojis true Use colored circle indicators for trade direction. Set to false for plain text labels.
Chart Screenshot
Parameter Default Description
Sc_Send false Capture and send a screenshot of the current chart with each trade notification.
Sc_DeleteAfterSend = true; // Delete screenshot file after sending
Sc_DeleteAfterSend = true; // Delete screenshot file after sending
Sc_Width 800 Width of the screenshot in pixels.
Sc_Height 500 Height of the screenshot in pixels.
Sc_Caption (empty) Optional text appended to the screenshot caption. If empty, the provider name and symbol are used.
Connection
Parameter Default Description
Conn_Timeout 10000 Maximum time in milliseconds to wait for a Telegram API response.
Conn_ShowStatus true Display a connection status label on the chart.
Conn_StartMsg true Send a message to Telegram when the EA starts. Includes account number, broker, and balance.
Conn_StopMsg true Send a message to Telegram when the EA is removed or the terminal closes. Includes the stop reason.
Daily Report
When Ev_DailyReport is enabled, the EA sends an automated summary once per day at the time defined by Ev_ReportHour. The report includes the total number of trades closed that day, the count of winners and losers, the win rate as a percentage, the total profit or loss in the account currency, and the current account balance.
Chart Screenshots
When Sc_Send is enabled, the EA saves a screenshot of the chart it is attached to after each trade open, close, or pending fill event. The image is sent to Telegram using the sendPhoto API method. If that request fails, the EA automatically retries using sendDocument, which is more compatible with Telegram groups and channels where direct photo uploads may be restricted.
Technical Notes
The EA does not trade. It has no effect on open positions, pending orders, or account funds.
It monitors all positions on the account, not only those on the chart it is attached to.
Multiple instances can run simultaneously on different charts if needed, for example to send different symbols to different Telegram channels using the symbol filter.
The connection to Telegram is checked every five minutes. If the connection is lost and restored, the status label on the chart updates automatically.
All text is encoded in UTF-8 before sending, which ensures correct rendering of all characters in Telegram.
Requirements
MetaTrader 5 build 2361 or later.
A Telegram account and a bot created via @BotFather.
WebRequests must be allowed for https://api.telegram.org/ in MT5 Options > Expert Advisors.
An active internet connection on the machine running MetaTrader 5.
