Telegram MT4 Notification
- Эксперты
- Robert Winata
- Версия: 3.0
- Обновлено: 19 апреля 2026
ELEGRAM_NOTIFICATION is a utility that forwards real-time trade events from your MetaTrader 4 terminal to any Telegram chat, group, or channel. It tracks every order event (open, close, modify, cancel) and sends a formatted message within seconds. It can also generate a daily profit and loss report for a user-defined time window.
Main Features
- Open alerts for market and pending orders (BUY, SELL, BUY LIMIT, SELL LIMIT, BUY STOP, SELL STOP)
- Close alerts with net profit, balance, equity, and daily profit total
- Modify alerts when StopLoss, TakeProfit, or pending entry price change, with pip delta
- Cancel alerts for deleted pending orders, distinguishing manual cancel vs. triggered
- Daily statistics report sent at a user-defined time, covering a user-defined window
- Filter by MagicID and Symbol
- Retry up to 3 attempts on failed send
- On-chart dashboard with live status, last sent event, and last error
- Supports Telegram group topics (thread IDs) for separating alerts and statistics
- Works on any MT4 broker
How It Works
Attach the expert to a single chart. It monitors all positions and pending orders on the account. When an event is detected, it builds an HTML-formatted Telegram message and sends it via the Telegram Bot API using WebRequest. The expert is a monitoring utility and never places or closes any trade on its own.
Setup
- Create a Telegram bot via BotFather and copy the bot token.
- Obtain your chat, group, or channel ID.
- In MetaTrader 5, open Tools - Options - Expert Advisors, enable Allow WebRequest, and add the URL api.telegram.org to the list.
- Attach the expert to any chart, enter BotToken and ChatID, and enable the events you want to be notified about.
Inputs
Telegram Setup
- BotToken: token received from BotFather
- ChatID: chat, group, or channel ID where messages are sent
- ThreadID: topic ID for group topics, optional
Notification
- NotifyOnOpen: alert when an order opens
- NotifyOnClose: alert when an order closes
- NotifyOnModify: alert when an order is modified
- NotifyDailyStat: daily profit and loss report
- StatSendTime: time the report is sent, HH:MM in user timezone
- StatWindow: time window the report summarizes, HH:MM-HH:MM from yesterday
- StatThreadID: separate topic ID for the daily report, optional
- WaitForTPSL: hold open alerts until StopLoss and TakeProfit are both set
Modify
- ModifyMinPips: minimum pip change required to trigger a modify alert. 0 reports any change, a value above 0 filters out trailing-stop noise
Filter
- FilterMagicID: 0 for all orders, a specific MagicID to isolate one EA
- FilterSymbol: empty for all symbols, a single symbol such as EURUSD
Display
- Reference: custom label included in every message
- GMTOffset: timezone offset for displayed times
Dashboard
- ShowDashboard: show the on-chart status panel
- DashboardCorner: position of the panel
Notes
- Attach the expert to only one chart per account. Multiple instances will produce duplicate notifications.
- WebRequest must be enabled and api.telegram.org must be in the allowed URL list.
- The expert does not place or close any trades.
