Enhanced Telegram Position Tracker MT5
- ユーティリティ
- Juergen Marcus Wolfgang Rosswinkel
- バージョン: 2.13
- アップデート済み: 22 2月 2026
- アクティベーション: 5
Enhanced Telegram Position Tracker EA — Product Description
Overview
The Enhanced Telegram Position Tracker is a pure monitoring Expert Advisor for MetaTrader 5. It does not open, close or modify any positions. Instead, it continuously observes the trading account and sends structured notifications via a Telegram bot to one or multiple channels. This allows traders to maintain full visibility over their account at any time and from anywhere.
Core Features
Real-Time Position Tracking
The EA detects newly opened, modified and closed positions on a tick-by-tick basis and reports each change immediately via Telegram. The internal tracking system continuously reconciles its own state with the MetaTrader terminal, ensuring no position goes unnoticed — even after an EA restart.
Automatic Notifications
The following events are reported automatically:
- New positions including entry price, volume, SL, TP, Magic Number and comment
- Closed positions including close price, realized profit/loss, swap, commission, holding duration and close reason (manual, Stop Loss, Take Profit, Expert Advisor, Close-by)
- SL/TP modifications of existing positions
- Partial closures and volume reductions
- Close-by operations (closing via opposite position), including cases where MetaTrader does not explicitly provide DEAL_REASON_CLOSE_BY, handled by a dedicated pattern detection algorithm
Periodic Status and Health Reports
At configurable intervals the EA sends complete account reports containing balance, equity, free margin, open positions grouped by symbol, as well as daily, weekly and monthly profit/loss. Health reports additionally include uptime, margin level assessment and current HFT status.
HFT Protection (High-Frequency Trading Protection)
When position throughput becomes very high, the EA automatically activates an HFT mode. In this mode individual notifications are suppressed and replaced by compact summary messages. The cooldown multiplier and activation threshold (events per minute) are fully configurable. When normal trading activity resumes, a session summary is sent automatically.
Batch Reporting
When multiple positions are opened or closed within a short time window, the EA consolidates them into a single structured report. This ensures that even during intensive trading sessions no important events are lost or buried in a flood of messages.
Message Queue with Priority System
If a Telegram transmission fails (for example due to a brief network interruption), the message is stored in an internal priority queue and retried automatically. Low-priority messages are dropped when the queue is full, while high-priority events such as position closures are preserved.
Message Splitting
If a report exceeds Telegram's 4,000 character limit, it is automatically split into multiple consecutive messages, with header lines repeated for orientation.
Multi-Channel Support
The EA can send simultaneously to multiple Telegram channel IDs. Chat IDs are entered as a comma-separated list in the settings field.
Input Parameters
Telegram Settings
| Parameter | Description |
|---|---|
| InpChannelName | Display name of the channel (documentation only) |
| TelegramToken | Bot token from BotFather |
| ChatID | Channel ID(s), comma-separated |
| MessageInterval | Status report interval in minutes |
Position Tracking Settings
| Parameter | Description |
|---|---|
| SendEAStartedMessage | Send startup notification when EA loads |
| SendAccountInfo | Include account information in reports |
| SendTradeUpdates | Report new and closed positions |
| SendClosedPositionsReport | Daily closed positions summary |
| TrackPositionModifications | Monitor SL/TP changes |
| ShowTradeDetails | Include extended details (times, Magic, comment) |
| DataFolderPath | Custom data path (leave empty for default) |
Health and Reliability Settings
| Parameter | Description |
|---|---|
| SendHealthReports | Enable periodic system health reports |
| HealthReportInterval | Health report interval in hours |
| SendHealthReportOnStartup | Send health report when EA starts |
| ForceVerification | Force a full position verification |
| SendStatusReportNow | Send a status report immediately |
Logging and Check Interval
| Parameter | Description |
|---|---|
| EnableRobustTracking | Enable tick-based position tracking |
| LoggingLevel | 0 = Minimal, 1 = Normal, 2 = Verbose |
| DisableDebugLogging | Disable all debug Print() statements |
| LogSkippedPositions | Log skipped position messages |
| VerificationInterval | Full verification every N seconds |
| PositionCheckInterval | Tick-based check rhythm in seconds |
HFT Protection
| Parameter | Description |
|---|---|
| HFT_Threshold | Events per minute to activate HFT mode |
| HFT_CooldownMultiplier | Cooldown multiplier in HFT mode |
| HFT_ModeDuration | Seconds of quiet before HFT mode deactivates |
| HFT_MinSendInterval | Minimum interval between Telegram sends (ms) |
| HFT_QueueMaxSize | Maximum messages in the queue |
Message Length Control
| Parameter | Description |
|---|---|
| MaxPositionsInReport | Maximum positions shown per report |
| UseCompactReporting | Use compact format for large accounts |
Requirements
For the EA to send messages, MetaTrader 5 must be configured to allow WebRequests. Go to Tools > Options > Expert Advisors, enable "Allow WebRequest for listed URL" and add https://api.telegram.org. Without this setting no Telegram messages can be sent.
The EA also requires a valid Telegram bot token created via BotFather and the numeric chat ID of the target channel or group.
Technical Notes
The EA does not execute any trading operations. It does not open, close or modify positions. Position tracking is performed in read-only mode via the MetaTrader API.
Internal data storage is exclusively in-memory. Only the list of already reported tickets and volume records are persisted to binary files in the terminal data path, in order to prevent duplicate notifications after an EA restart.
The EA is designed for continuous 24/5 operation on a VPS. The built-in timer handler acts as a safety net and processes positions even when no new ticks arrive.
Version
2.12