Ameri EA
← Back to Practical Guides in Trade Dashboard

Telegram Connection: alerts and private trading commands

Connect Trade Dashboard to Telegram for event alerts, account updates and confirmed trading actions from your private bot chat. MT5 command reception also requires the downloadable Telegram Service.

Telegram Connection: alerts and private trading commands — YouTube

Connect your bot and choose alert delivery

Create a bot with @BotFather. Open Settings → Telegram Connection and enter the Bot Token. In MetaTrader, open Tools → Options → Expert Advisors, enable Allow WebRequest and add https://api.telegram.org.

Start the bot privately, or add it to a group or channel with posting permission. Send a fresh message and use Find Chat ID, or enter the Alert Chat ID manually. Topic ID is optional for a forum group. Turn on the alert switch and click Send Test Message. Verify delivery in the intended destination, then enable the individual Telegram events in Notifications. Alerts and Receive bot commands have independent switches and destinations.

Download and install the MT5 Telegram Service

Download TradeDashboardTelegramService.ex5 below. This compiled Service is for MetaTrader 5 only; MT4 receives commands directly and does not use this file. Alerts alone do not require the Service.

In the MT5 terminal you use, choose File → Open Data Folder. Copy the file into MQL5\Services. Refresh Navigator or restart MT5, then add/start TradeDashboardTelegramService under Services. Run one instance per terminal; it is a Service, not an Expert Advisor to attach to a chart. Keep the Service, Trade Dashboard and terminal running and connected for remote commands. MT5 restarts a Service that was running when the terminal closed.

Download Telegram Service for MT5 (.ex5)

Enable private bot commands

In Telegram Connection, enter your positive numeric Private Chat ID, using the private chat lookup if needed, and enable Receive bot commands. This ID is separate from the Alert Chat ID: group/channel IDs cannot authorize private commands.

In MT5, check the Service status, then send /start or /help in your private conversation with the bot to display its buttons. BotFather command registration is not required. Only the configured private sender is accepted. Use one receiving dashboard chart per bot and a different bot for each running terminal. Webhooks and other bot polling tools conflict with command reception. After enabling, send a fresh message; old queued messages are skipped.

Check your account and switch symbols

Status shows the chart symbol, timeframe, quotes, managed trades and trading access. Account shows balances, margin and floating profit/loss. Positions and Orders list live tickets managed by this dashboard.

Symbol opens Market Watch in pages of twelve. Tap a symbol or send /symbol followed by its exact broker name, including any suffix. The dashboard chart changes while keeping its timeframe; unfinished bot actions are cleared.

Set risk, SL/TP and preview an entry

Risk/Lot offers Fixed Lot or Risk %. SL/TP offers an absolute SL price, distance in broker points or No SL; TP supports an absolute price, points, RR or No TP. Broker points are not necessarily pips. Use Panel restores the corresponding dashboard default. Bot choices are saved separately for the bot, account and chart symbol. Buy/Sell previews the entry, lot and protective levels without changing the panel fields. Risk-based sizing requires an SL; Fixed Lot can use No SL.

Inspect the preview and press Confirm within 30 seconds; Cancel discards it. If a moved price exceeds the risk budget, Retry prepares a new preview for another confirmation. Custom bot entries require the panel Virtual SL/TP and Modify SL/TP modes off.

MT5 also offers Pending → Buy Limit, Buy Stop, Sell Limit or Sell Stop. Enter an absolute entry price, review the setup and confirm. A successful placement does not mean the pending order has filled.

Manage positions and broker orders

Use Close/BE or Positions for ticket actions: Close, Close % (25/50/75 or a custom percentage), Breakeven and Close By. Close By requires eligible opposite positions and broker/account support; MT5 requires a hedging account. Positions and Orders offer Modify SL and Modify TP for broker levels. Enter an absolute price or remove the level, review the old/new values and confirm. Virtual levels stay under local dashboard management.

Close Buy, Close Sell and Close All preview the selected managed positions, potentially across symbols. Delete All targets live managed broker pending orders, excluding virtual and waiting two-stage orders. Confirmation rechecks the captured tickets and does not add trades created after preview.

Connection status and troubleshooting

In MT5, alert OFF means disabled, amber WAIT means no successful check for the current settings or a failed request, and green ON means the last check/test/delivery succeeded. Use Send Test Message to verify actual posting rights and the selected topic.

WebRequest failure: check the allowed URL and network. HTTP 400: check chat/topic. HTTP 401/404: check token. HTTP 403: start the bot or grant posting permission. HTTP 429: wait before retrying.

Alerts work but commands do not: check Receive bot commands, the positive Private Chat ID and, in MT5, the running Service. Check for another receiver using the same bot. A valid license, trading permissions, an unlocked panel and broker limits still apply. Keep the Bot Token private and hide it in screenshots or recordings. Replace an exposed token through BotFather. In MT5, distinguish a submitted request from the later broker result; an unknown result is not a confirmed fill.