Telegram Trading Reporter MT5
- Utilities
- Version: 2.22
- Updated: 26 November 2026
- Activations: 10
Telegram Trading Reporter — Automated Performance Reports & Chart Delivery for MetaTrader 5
A pure analysis and reporting Expert Advisor that turns your MetaTrader 5 account history into structured performance reports and delivers them to Telegram automatically, together with visual charts rendered by the terminal itself.
OVERVIEW
The Telegram Trading Reporter is a pure analysis and reporting Expert Advisor for MetaTrader 5. It does not open, close or modify any positions. It analyses your account's trading history, generates structured performance reports and delivers them automatically via Telegram to one or multiple channels. The trade history analysis is performed in read-only mode through the MetaTrader API.
Visual charts are created directly in the MetaTrader terminal and attached to the report as image files, so the numbers and the picture arrive together instead of in separate places.
The EA is designed for continuous 24/7 operation on a VPS and requires no manual intervention after the initial setup. Enter the bot token and the chat ID once, choose the hours at which reports should go out, and the reporting runs on its own from that point on.
FEATURES
Telegram topics support
Reports are sent directly to specific topics, meaning threads, inside Telegram supergroups. This keeps different trading accounts or strategies organised in separate threads instead of one mixed feed. The destination format is chat_id:thread_id, for example -1001234567890:12345. Topic routing works with all message types, covering text, photos and documents, and with every report section. It is fully backward compatible, so old chat IDs without a thread ID continue to work unchanged. Topics support was added in version 2.0.
Every closure counted, including close-by [improved in v2.22]
On a hedge account, closing two opposite positions against each other is a normal operation, and MT5 marks those deals differently from an ordinary close. Every statistic now recognises them: P&L, win rate, trade count and volume all include close-by trades, so a day spent netting positions against each other reads correctly instead of appearing half empty.
Automated daily reports at configurable times
Up to three daily reports are sent at freely selectable hours. Each report covers a configurable number of days, from one to thirty, plus the current day, and includes profits, losses, win rate, profit factor and the total volume traded.
Day-by-day performance breakdown
For every day in the reporting period the report lists profit and loss, the number of trades, the win rate and the volume individually. Days without any trades can optionally be hidden from the report. Each day is marked as a profit day, a loss day or a neutral day, so the sequence stays readable at a glance.
Symbol analysis
All instruments traded within the reporting period are identified automatically and ranked by overall performance. Each symbol is listed with its result and its number of trades.
EA performance tracking by magic number
Several Expert Advisors are monitored at the same time. Magic numbers are entered as a comma-separated list and can be given custom display names. Each EA is listed with its result, win rate, number of trades and drawdown.
Ranking by return per drawdown [NEW in v2.11]
Most reports rank Expert Advisors by profit, which puts the EA that earns most at the top, not the one that handles risk best. This report measures every EA against its own maximum drawdown and ranks by that figure instead. An EA earning 2,563 with a 636 drawdown outranks one earning 5,744 with a drawdown of 1,856, because it produces four units of return per unit of risk instead of three. The figure appears next to each bar in the chart and in the Telegram message, and RankEAsByRiskAdjusted switches back to profit ranking at any time. An EA the figure cannot describe is no longer treated as the best one. With fewer trades than MinTradesForRanking, or with no drawdown at all inside the period, the entry reads n/a together with the reason and the EA is placed below the rated ones. A single winning trade produces no drawdown and a single losing trade always produces exactly minus one, so neither describes the EA. The threshold defaults to five trades.
Separate risk window [NEW in v2.12]
Drawdown and ranking can run on their own, longer period while the report itself stays on the short one. A 14 day report combined with a 90 day risk window gives a stable risk figure next to the current daily picture, because a single bad day no longer moves the ranking. The summary figures always follow the report period, the EA figures follow the risk window, and both headings state which period they show. RiskWindowDays set to 0 puts everything back on a single period.
Visual charts from MetaTrader
Up to four charts are created as overlay objects directly in the MetaTrader chart window and saved as a single PNG file: a daily bar chart showing colour-coded profit and loss per day, a symbol performance chart, an EA comparison chart and an account balance and equity history chart. All charts are combined into one screenshot and sent via Telegram. The send mode is configurable as photo, as document, or as automatic with fallback.
Persistent account balance history
The account balance is checked every 30 minutes and written to a CSV file whenever it has changed, and at least every twelve hours. The file is reloaded automatically on the next EA start. This produces a continuous balance history spanning several weeks and surviving EA restarts. An automatic backup file protects against data loss from write errors.
Net profit and loss including both commission legs [NEW in v2.14]
Some brokers book the entry commission on the entry deal rather than on the exit. A calculation that only reads exit deals silently loses part or all of it. Every figure in this report is net: profit plus swap, commission and deal fee of the exit deal, plus the commission, deal fee and swap of the matching entry; deal fees are what some brokers charge per deal in addition to commission. Each entry deal is charged exactly once, on the first exit deal that follows it, under the selected magic number when MagicNumber filters the report. Partial closes therefore never count the entry cost twice, not even when they fall on different days or the first part lies outside the report or risk window; a position filled in several parts counts every fill, and a fill added after a partial close is charged on the next exit. Open positions count with their floating profit, their swap and the entry cost that no exit deal has carried yet; the exit commission follows when they close [improved in v2.22]. Both commission sides are summed rather than one being assumed, which covers brokers charging on entry, on exit or split across both without any setting. Every report message and the title of every profit chart state the basis, net or gross, and UseNetPnL switches to gross figures for anyone who prefers them.
Report message format
Each report arrives as a short series of formatted HTML messages: a summary with account balance and equity, the period figures and their basis, then the daily performance with the result of each day, the EA ranking when it is enabled and the symbol performance when it is enabled, followed by the chart image. Splitting the report by section keeps each message short.
Chart file management
Chart images are stored in the MQL5\Files\reports\ directory under the fixed file name trade_report.png, and every report overwrites the same file. The auto send mode first attempts to send the chart as a photo and switches to a document if the image size exceeds Telegram's limits. Supported image dimensions reach 10000x10000 pixels with a maximum file size of 10 MB.
Filters and open positions
All analysis can be restricted to a specific magic number or a specific trading instrument. By default every trade is included regardless of magic number or symbol. Currently open positions can optionally be included in today's statistics, so that the current floating profit and loss is reflected in the daily result, on the same basis as the closed trades.
Multi-channel Telegram delivery
Reports are sent simultaneously to several Telegram chat IDs or topics, entered as a comma-separated list. Combinations of regular chats, channels, groups and supergroup topics are supported within the same list. If Telegram answers with a rate limit, the EA waits for the time Telegram asks for and sends the message once more.
Instant report on demand
Setting SendReportNow to true sends a report straight away, without waiting for the next scheduled hour. An input cannot switch itself off: while it stays true, the EA sends a report every time it starts, including after a change of inputs or timeframe and after a terminal restart, so set it back to false once the report has arrived.
PARAMETERS
Only the bot token and at least one chat ID have to be filled in. Every other input ships with a working default.
General settings. MagicNumber limits the analysis to a single magic number and defaults to 0 for all trades. SymbolFilter restricts it to one instrument and is empty by default, which includes all symbols. IncludeOpenTrades adds open positions to the statistics and is enabled. MaxDaysToReport sets how many days the report covers in addition to the current day, 7 by default; values outside 1 to 30 are limited to that range. UseNetPnL calculates every figure net of swap, commission and deal fees on both legs and is enabled.
Report settings. OnlyReportWithTrades shows only days on which trades occurred and is enabled by default. ReportHour sets the first daily send time as an hour between 0 and 23 and defaults to 0, while ReportHour2 and ReportHour3 add a second and a third report and are disabled with the value -1. IncludeSymbolAnalysis adds the symbol performance section to the report. TopSymbolsToShow limits the symbol chart to five entries and TopSymbolsInTelegram the message list to seven, both adjustable. SendReportNow sends a report at every EA start while it is true and belongs back on false afterwards, and DebugMode writes detailed diagnostic output to the journal.
EA performance settings. TrackEAPerformance switches the per-EA breakdown on. EAMagicNumbers takes the magic numbers of your EAs as a comma-separated list and EANames the matching display names in the same order, both empty by default. TopEAsToShow limits the chart to five EAs and TopEAsInTelegram the message list to ten, both adjustable. ShowEAPerformanceChart creates the visual EA comparison chart. RankEAsByRiskAdjusted ranks by return per drawdown and is enabled, ShowRiskRatioInChart prints that figure next to each bar, and RiskWindowDays gives drawdown and ranking their own period, 0 meaning the same period as the report. MinTradesForRanking sets how many trades an EA needs before it is ranked at all, five by default and 0 to rank every EA.
Telegram settings. UseTelegram enables the Telegram notifications. TelegramBotToken takes the bot token from BotFather and is required. TelegramChatIDs takes one or more destinations, either as plain chat IDs or in chat_id:thread_id form, separated by commas. SendTestMessageOnStartup sends a test message when the EA starts and is switched off by default. SendChartAs selects the send mode auto, photo or document.
Visualization settings. CreateTradeChart builds the daily bar chart, ShowAccountBalanceChart the account balance history chart, and SendChartWithReport attaches the resulting image to the report. All three are enabled by default. ChartWidth and ChartHeight define the image size in pixels, with defaults of 900 and 400, and BalanceHistoryDays sets how many days the balance history covers, 30 by default.
INSTALLATION
Install the EA from inside the MetaTrader 5 terminal you want to run it on: log in under Tools, Options, Community with the MQL5 account you bought or rented it with, then open the Market in that terminal and install the EA from your purchases. It then appears in the Navigator.
In MT5 open Tools, Options, Expert Advisors, enable "Allow WebRequest for listed URL" and add the address api.telegram.org with https:// in front of it, written without spaces.
Create a Telegram bot by starting a conversation with BotFather and using the /newbot command, then copy the bot token. Determine the numeric chat ID of your target channel, group or supergroup topic, and add your bot as an administrator if you post into a channel. For topics, enable Topics in the supergroup settings and note the thread ID of the topic you want to use. The General topic has the ID 1 and custom topics have their own unique IDs.
Drag the EA onto any chart and enter the token in TelegramBotToken. In TelegramChatIDs enter either a plain chat ID such as -1001234567890, a supergroup topic such as -1001234567890:12345, or several destinations separated by commas. Set ReportHour to the daily send time you want, and add ReportHour2 and ReportHour3 for up to two additional reports per day. To track individual EAs, enable TrackEAPerformance and enter their magic numbers in EAMagicNumbers with the matching names in EANames.
Confirm the settings with "Allow Algo Trading" enabled in the EA properties. A test message is sent to Telegram immediately if SendTestMessageOnStartup is enabled, and setting SendReportNow to true produces a report straight away.
Please note that Algo Trading must be active in MetaTrader 5, either through the toolbar button or with Ctrl+E, and that WebRequests must be allowed in the Expert Advisors options for api.telegram.org with https:// in front of it. The EA itself does not trade and never opens, closes or modifies positions. The balance history CSV file is stored in the terminal data path and backed up automatically while it is being written. Telegram topics are only supported in supergroups, while regular groups, channels and private chats use the standard format without a thread ID.
COMPATIBILITY
MetaTrader 5 from build 3000 upwards, written in MQL5. All instruments are supported, including Forex, metals such as XAU and XAG, indices, crypto, energy and CFDs, on all timeframes. Demo and live accounts are both supported, on hedging as well as netting accounts. Algo Trading must be enabled in the terminal and in the EA properties, and a VPS is recommended for continuous 24/7 operation. A one-month rental is available alongside the full purchase.
Version 2.22 | fi.con Investment Group | MQL5 Marketplace
