Telegram to Discord MT5 Bridge
- Utilities
-
Janet Abu Khalil
Professional software engineer and trader with 5 years of experience in the financial markets. I am part of the AtlasLabs.uk Engineering Division, where I develop trading solutions, software tools, and technical systems. My background includes networking, system support, and troubleshooting, helping - Version: 1.0
- Activations: 10
Telegram to Discord Pro for MT5
Telegram to Discord Pro is a bridge Expert Advisor for MetaTrader 5 that reads trading signals and trade-management messages from a Telegram bot chat, channel, or group, then forwards them to your Discord channel in a clean and configurable format.
This EA is made for traders, signal providers, private communities, and automation users who want to mirror Telegram trading messages into Discord in real time.
It can detect and forward messages such as Buy, Sell, Close, Breakeven, and Partial Close. It can also read signal details such as symbol, entry, stop loss, take profit levels, and open TP text, then send the information to Discord either in formatted mode or raw text mode.
The EA supports both normal Telegram messages and Telegram channel posts, which makes it suitable for private channels, public channels, groups, and bot-based workflows.
For help with Discord and Telegram setup, please read the README guide.
What this EA does
Telegram to Discord Pro connects to Telegram using your bot token and chat ID, checks for new updates every few seconds, parses the incoming text, detects the type of signal or instruction, and sends the result to your Discord channel using your Discord bot token and channel ID.
The EA is designed as a forwarding and formatting bridge. It does not place trades. Its purpose is to monitor Telegram messages and publish them into Discord clearly and automatically.
Main features
- Reads Telegram messages from bot chat, group, or channel
- Supports Telegram message and channel post updates
- Forwards signals to Discord automatically
- Detects Buy, Sell, Close, Breakeven, and Partial Close messages
- Extracts symbol, entry, SL, TP, and TP OPEN text from messages
- Supports formatted output and raw forwarding
- Includes compact mode for shorter Discord messages
- Includes optional Telegram message ID, timestamp, and chat info
- Supports custom signal keywords
- Includes log on or off control
- Includes visual panel on chart
- Includes expiry protection
Important setup note
To use this EA, you must allow the required WebRequest URLs in MetaTrader 5.
Go to:
Tools -> Options -> Expert Advisors
Enable:
Allow WebRequest for listed URL
Add these URLs:
https://api.telegram.org
https://discord.com
Input settings
=== Telegram Connection ===
Enable debug logging
Turns internal debug logs on or off in the Experts tab.
Set to false for normal use. Set to true only when testing or troubleshooting.
Telegram Bot Token (from BotFather)
The token of your Telegram bot. This is required so the EA can read updates from Telegram.
Telegram Chat ID / Channel ID / Group ID
The Telegram source chat ID that the EA should monitor. This can be a private chat, group, or channel ID.
Optional Telegram message_thread_id
Reserved optional field for Telegram thread or topic workflows. It is preserved for compatibility.
Poll interval (seconds)
How often the EA checks Telegram for new messages.
Smaller values mean faster forwarding but more frequent requests.
Telegram WebRequest timeout ms
Maximum wait time for Telegram WebRequest replies in milliseconds.
=== Signal Parsing ===
Auto symbol from signal
If true, the EA tries to detect the symbol directly from the Telegram message text.
Default symbol if not in signal
If no symbol is found inside the message, this symbol is used as fallback.
Symbol suffix (e.g. m or .i)
Optional suffix added to detected symbols. Useful for brokers using symbols like XAUUSDm.
Symbol prefix
Optional prefix added to detected symbols.
Compatibility magic number
Compatibility field preserved from bridge-style input structures.
Compatibility slippage (points)
Compatibility field preserved from bridge-style input structures.
=== Compatibility / Formatting ===
fixed_lot | pct_balance | pct_equity
Compatibility field preserved for bridge consistency. It does not affect forwarding behavior.
Fixed lot size
Compatibility field preserved.
Risk % of balance/equity
Compatibility field preserved.
Max open positions (compatibility)
Compatibility field preserved.
=== SL / TP Mode ===
signal | fixed | none
Compatibility field preserved for signal interpretation structure.
Fixed SL in pips (if mode=fixed)
Compatibility field preserved.
signal | fixed | trailing | partial | none
Compatibility field preserved.
Fixed TP in pips (if mode=fixed)
Compatibility field preserved.
=== Trailing Stop ===
Compatibility option
These trailing settings are preserved for compatibility with copier-style input structures.
Compatibility option
Trail activation level, preserved for compatibility.
Compatibility option
Trail distance, preserved for compatibility.
=== Break-Even ===
Compatibility option
Break-even enable option, preserved for compatibility.
Compatibility option
Break-even activation level, preserved for compatibility.
Compatibility option
Break-even offset, preserved for compatibility.
=== Partial Close ===
Compatibility option
Partial close enable option, preserved for compatibility.
Compatibility option
Partial close percentage, preserved for compatibility.
=== Filters ===
Max daily loss $ (0=off)
Compatibility field preserved.
Max daily profit target $ (0=off)
Compatibility field preserved.
=== Range Orders (Compatibility) ===
These inputs are preserved for compatibility with broader signal bridge structures.
Preserve range mode option
Range orders compatibility option.
Preserve range step option
Range step compatibility option.
Preserve option
Range cap at max positions compatibility option.
Preserve option
Range auto step compatibility option.
Preserve option
Range all TPs compatibility option.
Preserve option
Range sequential TPs compatibility option.
=== Multi-TP Orders (Compatibility) ===
Preserve option
One order per TP compatibility option.
Preserve option
Lot per TP order compatibility option.
=== Pending Orders (Compatibility) ===
Preserve option
Pending expiry compatibility option.
Preserve option
Close on any TP hit compatibility option.
=== Symbol Tick Correction ===
Example: XAUUSD=100,US30=10
Compatibility field preserved for symbol-specific tick correction maps.
Example: HK50=0.18,JP225=0.006
Compatibility field preserved for currency factor maps.
=== Custom Signal Keywords ===
These settings let you define your own words or phrases for signal detection. This is useful if your Telegram provider uses unusual wording.
Use custom keywords
If true, the EA uses your custom keyword lists instead of the default built-in detection logic.
Buy words
Comma-separated list of words or phrases that should be treated as Buy signals.
Sell words
Comma-separated list of words or phrases that should be treated as Sell signals.
Close words
Comma-separated list of words or phrases that should be treated as Close instructions.
Breakeven words
Comma-separated list of words or phrases that should be treated as Breakeven instructions.
Partial words
Comma-separated list of words or phrases that should be treated as Partial Close instructions.
SL words
Comma-separated list of words that represent Stop Loss in messages.
TP words
Comma-separated list of words that represent Take Profit in messages.
Entry words
Comma-separated list of words that represent Entry in messages.
=== Discord Connection ===
Discord Bot Token
The token of your Discord bot. Required for sending messages into your Discord channel.
Discord Channel ID
The Discord channel ID where forwarded messages will be posted.
Discord WebRequest timeout ms
Maximum wait time for Discord WebRequest replies in milliseconds.
Send startup message on init
If true, the EA sends a confirmation message to Discord when the EA starts successfully.
Send original Telegram message too
If true, the EA also sends the original raw Telegram message in addition to the formatted output.
=== Discord Formatting ===
Send formatted output
If true, the EA sends a structured Discord message showing symbol, action, entry, SL, TP, and other details when detected.
Compact one-block format
If true, the Discord message is shorter and more compact.
Include Telegram chat info
Adds the Telegram chat ID to the forwarded Discord message.
Include Telegram message ID
Adds the Telegram message ID to the forwarded Discord message.
Include local time
Adds the local platform time to the forwarded Discord message.
Include raw detected action
Adds the internally detected action text such as BUY, SELL, CLOSE, BREAKEVEN, or PARTIAL_CLOSE.
Include TP OPEN text
If the signal contains text such as TP OPEN or OPEN TP, this can be shown in the Discord output.
Include SL/TP modes
If SL or TP values are not explicitly found, the EA can display the configured mode text.
Use emoji in Discord text
Compatibility display option for alternate message styling.
=== Bridge Events ===
These settings allow you to decide which types of Telegram messages should be forwarded.
Forward new trade messages
If true, Buy and Sell messages are forwarded.
Forward close messages
If true, Close messages are forwarded.
Forward breakeven messages
If true, Breakeven messages are forwarded.
Forward partial close messages
If true, Partial Close messages are forwarded.
How the EA works
1. The EA connects to Telegram using your bot token.
2. It checks new updates using your Telegram chat or channel ID.
3. It detects the message type and extracts the content.
4. It identifies the action such as Buy, Sell, Close, Breakeven, or Partial Close.
5. It extracts available fields such as symbol, entry, SL, TP, and message ID.
6. It sends the final result to your Discord channel using your Discord bot.
Example supported messages
BUY XAUUSD 3350
SL 3340
TP 3360
TP 3370
SELL GOLD NOW 3345
TP 3338
TP 3330
SL 3355
CLOSE GOLD
MOVE SL TO BE
PARTIAL CLOSE XAUUSD
Who this product is for
- traders who publish Telegram signals and want them mirrored to Discord
- signal communities that use both Telegram and Discord
- Discord server owners who want automated Telegram signal delivery
- automation users who want to bridge trading messages between platforms
Notes
- This EA is a message bridge and forwarding tool
- It does not execute trades
- It requires valid Telegram and Discord bot credentials
- Telegram bot access depends on proper bot permissions in the source chat or channel
- Discord posting depends on proper bot permissions in the target channel
Support and setup help
For help with Discord and Telegram setup, please read the README guide.
