DocFX Telegram to MT5 Signal Follower
- ユーティリティ
- バージョン: 1.13
- アクティベーション: 10
Introduction
Executes the trade signals posted in your Telegram channels or groups on MetaTrader 5, then manages each trade from the provider's follow-ups: stop and target changes, breakeven, partial closes, closes and cancellations. Reads DocFX Provider signals exactly and plain-text signals from other sources.
Full description
DocFX Telegram to MT5 Signal Follower reads the trade signals posted in your Telegram channels or groups and places them on your account. It doesn't stop at the entry. When the provider later posts "move SL to breakeven", "close half" or "close now", the EA finds the trade that message belongs to and does it.
It works with signals from the DocFX MT5/MT4 to Telegram Signal Provider, and with ordinary text signals from other channels, including ones typed by hand.
Important: what you need before buying
The EA reads Telegram through your own bot, and Telegram only shows a channel's posts to a bot that is an administrator of that channel. So:
- You can follow any channel whose owner adds your bot as an administrator (it needs no admin rights at all, just the admin status). This is the normal setup when a signal provider offers automatic copying to members.
- In a group, the bot can be an administrator, or an ordinary member if you switch its privacy mode off in @BotFather.
- You cannot follow a public channel just because you are subscribed to it. If the owner won't add your bot, this EA can't read that channel.
What it does with a signal
- Opens market orders and buy/sell limit and stop orders.
- Reads the symbol, direction, entry or entry zone, stop loss and one or multiple take profits.
- Finds the symbol on your broker even when the names differ: built-in aliases (GOLD, XAU, US30, DOW, NAS100, USTEC, GER40, DAX and others), your broker's prefix or suffix, and your own mapping (for example GOLD=XAUUSD.m).
- Understands stops and targets given as prices or as distances in pips or points.
- A target written as "open" means that part of the trade runs with no take profit.
It skips rather than guesses
Every message is scored on how clearly it reads as a signal.
- Clear signals are executed.
- Partly clear ones (for example, a stop with no entry) go to you for confirmation on the panel.
- Unclear ones are skipped, and the log says what was and wasn't found.
Result posts such as "TP1 hit +40 pips", "SL hit" or "closed in profit" are recognised and never open a trade. Sanity checks refuse a signal whose stop or target is on the wrong side of the entry, whose pending type doesn't match where the price is, or whose prices are far from the market.
Managing the trade afterwards
When a follow-up arrives, the EA links it to the right trade:
- by the trade ID in DocFX Provider signals,
- by Telegram reply: most providers post updates as replies to the original signal,
- by symbol, when the follow-up names a symbol and exactly one open trade from that channel fits. If two trades fit, it does nothing and tells you.
It then carries out:
- close, or close a percentage
- move the stop loss, move to breakeven
- change the take profit
- move a pending order's entry, cancel a pending order
- add to a position (scale-in)
A follow-up it can't link to a trade is logged and ignored. An unlinked "close now" never closes anything.
Edited messages
Providers often fix a typo after posting. If an edit changes the stop or target, your trade is updated. If it corrects the symbol or direction (BUY to SELL, say) within a few minutes of the original, the EA closes the wrong trade and opens the corrected one, so you never end up holding both. You can set it to only warn, or only close, instead. Edits are never executed as a second trade.
Lot sizing
- Your own risk % of balance (default for most signals)
- The provider's stated risk % (default for DocFX Provider signals)
- Fixed lots
- The provider's lots times a multiplier
- The provider's lots, copied
Lots are always rounded down to your broker's lot step, never up.
Several take profits
Choose one position at the first target, one at the last, or split into one position per target. When split, the risk is calculated once for the whole signal and divided across the positions, equally or by your own weights, so three targets never means three times the risk. Optionally, the remaining positions move to breakeven when the first target is hit. Providers who open separate trades for each target are recognised too: same symbol, direction and stop within a few seconds become one trade with one risk budget.
Entry zones
For a signal like "buy 2350–2345": enter at market when price is inside the zone, or place a limit at the better edge. When price is outside: skip it, wait a set number of minutes for price to come back, or enter anyway within your slippage limit. Waiting signals are listed on the panel with a countdown.
Safety
- Maximum risk per trade (% of balance)
- Daily loss limit: stops new entries for the day, while still managing open trades
- Maximum open trades and maximum lot size
- Ignore signals older than a set number of seconds
- Skip a signal if price has moved too far from the stated entry
- Optional confirmation of every signal, with a preview of symbol, entry, stop, targets, lots and risk, and Execute / Reject buttons
- If the provider removes their stop loss, your stop is kept by default and you are warned
- Panel buttons: Pause entries, Pause all, Close all Follower trades
- Pausing entries keeps managing open trades, so a provider's close is never missed
Reliable across restarts
- Messages posted while the EA was off are counted and skipped, never executed late. If any came from a channel with open trades, you are warned to check them.
- The link between each Telegram signal and your trades is saved, so after a restart a later "close" still finds its trade.
- One bot can serve several Followers on different charts, terminals or computers, each following its own channels.
- If the same account is set to follow the same channel twice on one computer, only one chart follows it; the other stands aside and says so.
Warnings that reach you
Anything that needs your attention (a refused change, a correction, a confirmation waiting) appears as a popup, on the panel, and as a push notification to the MetaTrader mobile app if you turn that on.
Clear diagnostics
- On load the EA checks the token, that no webhook is blocking the bot, and that the bot can see each channel. It never posts anything.
- Paste channels as @name, a t.me link, or the -100... ID, separated by commas.
- A message from a chat you haven't listed is logged once with its ID, which is the easiest way to find a private channel's ID.
- Every step is logged to the Experts tab: received, parsed, executed, skipped or refused, with the reason.
- The panel shows connection status, each channel, today's executed, rejected and waiting signals, daily loss used, trades followed, and the confirmation card.
Setup in five steps
- In Telegram, open @BotFather, create a bot and copy the token.
- The channel owner adds your bot to the channel as an administrator, with every right switched off. The EA only reads; it never posts, edits or deletes. (In a group: make it an administrator, or send /setprivacy to @BotFather and choose Disable.)
- Enter the token and the channel(s) in the EA inputs.
- In MetaTrader, go to Tools > Options > Expert Advisors, tick "Allow WebRequest for listed URL" and add https://api.telegram.org
- Attach the EA to one chart, any symbol. It trades every symbol the signals name, on that terminal.
Don't connect anything else to the same bot (another copier, a webhook). DocFX products share a bot safely; other programs take the messages for themselves.
About the demo
MetaTrader doesn't allow internet connections in the Strategy Tester, so the demo version cannot read Telegram and will not open trades. It shows the panel and the inputs only.
Notes
- Works with any broker. Hedging accounts keep each signal's trade separate; on a netting account, two signals on the same symbol merge into one position.
- Uses its own magic number, so it runs next to other EAs and manual trading without touching their trades.
- Deleting a signal in Telegram does not cancel it. The provider should post "cancel" or "close".
- Signals are read in English.
Inputs
| Group | Input | Default |
|---|---|---|
| Telegram | Bot token (your own bot, from @BotFather) | empty |
| Channels to follow: @name or -100... ID, comma-separated | empty | |
| Seconds between checks for new messages | 5 | |
| Reading signals | Unit for a bare stop distance such as "SL 30" | Pips |
| Symbol mapping, e.g. GOLD=XAUUSD.m;US30=DJ30 | empty | |
| Prefix / suffix your broker adds to every symbol | empty | |
| Link a follow-up by its symbol when exactly one trade fits | true | |
| Lot sizing | Lot mode for DocFX Provider signals | Signal's RISK % applied to my balance |
| Lot mode for every other signal | My own risk % of balance | |
| My risk per trade (% of balance) | 1.0 | |
| Fixed lots | 0.01 | |
| Multiplier on the provider's lots | 1.0 | |
| Largest lot size per trade (0 = no limit) | 0 | |
| Multiple take profits | Signals with several targets | Split into one position per target |
| How the lots are split | Equal | |
| Weights for a weighted split | 50,30,20 | |
| Move the remaining legs to breakeven when TP1 hits | true | |
| Seconds to collect separate legs of one trade | 5 | |
| Entries | Price inside the entry zone | Enter at market |
| Price outside the entry zone | Wait for price to enter the zone | |
| Minutes to wait | 15 | |
| Accept signals without a stop loss | true | |
| Pending order expiry in minutes (0 = good till cancelled) | 0 | |
| Safety | Maximum risk per trade (%, 0 = off) | 2.0 |
| Daily loss limit (% of day-start balance, 0 = off) | 5.0 | |
| Maximum open trades (0 = no limit) | 0 | |
| Ignore signals older than this many seconds (0 = off) | 60 | |
| Skip if price is this far from the signal's entry (pips, 0 = off) | 0 | |
| Confirmation | Ask before executing every signal | false |
| Reject an unanswered confirmation after (seconds) | 120 | |
| Edits and management | When an edit changes symbol or direction | Close and reopen corrected |
| Reopen only if corrected within (minutes, 0 = no limit) | 5 | |
| Remove my stop loss when the provider removes theirs | false | |
| Alerts | Send warnings to the MetaTrader mobile app | true |
| General | Magic number | 46242014 |
| Panel X / Y | 20 / 40 | |
| Log every action to the Experts tab | true |

