Person Information: Haven MT5 to Telegram
Skilled Telegram Notifier for MetaTrader 5
Haven MT5 to Telegram is an expert instrument for sending commerce notifications to your Telegram channel or personal chat. It helps screenshots, information monitoring, automated studies, and full message customization.
🚀 Step 1. Terminal Preparation (MANDATORY)
To permit the Knowledgeable Advisor to ship messages, you should grant the terminal entry to Telegram servers.
- Open your MT5 terminal.
- Go to the menu: Instruments -> Choices -> Knowledgeable Advisors tab.
- Verify the field Enable WebRequest for listed URL.
- Click on the Add (+) button and enter the next tackle:
5. Click on OK.
⚠️ Warning: With out this step, the EA will log an error, and messages is not going to be delivered.
🤖 Step 2. Making a Bot in Telegram
- Open Telegram and discover the @BotFather bot.
- Ship the /newbot command.
- Select a reputation (e.g., MyTradingBot ) and a username (should finish in “bot”, e.g., MySuperTrade_bot ).
- BotFather will present an API Token (a protracted string of characters). Copy it — that is the InpBotToken parameter.
Find out how to discover your Chat ID?
- Discover the @userinfobot (or comparable) and press Begin. It should present your ID.
- If you wish to ship messages to a Channel:
- Add your bot as an administrator to the channel.
- Channel IDs often begin with -100… (yow will discover it by forwarding a message from the channel to the @getidsbot).
- Enter this ID into the InpChatID parameter within the EA settings.
🎨 Step 3. Message Configuration (Templates)
You possibly can totally customise the look of your notifications. The EA helps HTML formatting and particular tags.
📋 Record of Accessible Tags
The EA will mechanically exchange these phrases with precise commerce information:
| Tag | Description | Instance |
|---|---|---|
| {SYMBOL} | Buying and selling pair | EURUSD |
| {TYPE} | Operation sort | BUY / SELL |
| {LOT} | Lot quantity | 0.10 |
| {PRICE} | Present / closing worth | 1.0850 |
| {OPEN_PRICE} | Opening worth | 1.0820 |
| {PROFIT} | Revenue (with forex) | +15.50 USD |
| {PIPS} | Revenue in pips | 30 |
| {TIME} | Server time | 2025.01.12 14:30 |
| {TICKET} | Ticket quantity | 12345678 |
| {DURATION} | Commerce period | 2h 15m |
| {TYPE_ICON} | Course icon | 🟢 or 🔴 |
| {STATUS_ICON} | Outcome icon | ✅ or ❌ |
📂 Superior Configuration (By way of Information) — RECOMMENDED!
Enhancing lengthy textual content within the slender MT5 settings area is inconvenient. It’s higher to make use of textual content information.
📍 The place to create information and how one can hyperlink them? (Essential)
The EA works inside a particular protected folder (“sandbox”).
- Within the terminal, click on File → Open Knowledge Folder.
- Go to the MQL5 folder, then into the Information folder.
- Create your template information precisely right here (Proper-click → New → Textual content Doc).
⚠️ Watch the file extension! If file extensions are hidden in your OS, you may unintentionally create open.txt.txt . Make sure the filename is precise.
⚙️ Linking the file to the bot settings
Enter the precise filenames into the corresponding fields within the EA settings (beneath Message Templates):
- InpFilePending — pending.txt
- InpFileOpen — open.txt
- InpFileClose — shut.txt
📝 File Content material Examples
Copy the textual content from the blocks under into the respective information (use UTF-8 encoding):
1. File: pending.txt (For pending orders)
⏳ <b>PENDING ORDER</b>
🤖 EA Assistant
📊 Image: <b>{SYMBOL}</b>
💠 Kind: <b>{TYPE}</b>
💼 Quantity: <b>{LOT} lot</b>
🎯 Value: {PRICE}
⏱️ Time: {TIME}
🆔 Order #{TICKET}2. File: open.txt (For market entry)
🆕 <b>MARKET ENTRY</b>
🤖 EA Assistant
📊 Image: <b>{SYMBOL}</b>
{TYPE_ICON} Kind: <b>{TYPE}</b>
💼 Quantity: <b>{LOT} lot</b>
💰 Open Value: {PRICE}
⏱️ Time: {TIME}
🆔 Ticket #{TICKET}3. File: shut.txt (For commerce closing)
{STATUS_ICON} <b>TRADE CLOSED</b>
🤖 EA Assistant
📊 Image: <b>{SYMBOL}</b>
💼 Quantity: <b>{LOT} lot</b>
---------------------
💵 Revenue: <b>{PROFIT}</b>
📉 Pips: {PIPS}
💰 Open: {OPEN_PRICE}
🏁 Shut: {CLOSE_PRICE}
⏱️ Length: {DURATION}💡 Tip: If the InpFile… area is stuffed with a filename, the bot ignores the textual content within the InpTpl… area and pulls the template from the file.
📸 Screenshots and Graphics
The EA can ship screenshots of trades with drawn ranges.
- InpUseScreens: Allow sending pictures.
- InpDrawRR: Attracts “Entry”, “Cease Loss”, and “Take Revenue” zones (Inexperienced/Purple zones) on the closing screenshot.
- InpWatermarkText: Watermark textual content (e.g., your channel identify).
- InpHeight / InpWidth: Picture decision (default is 1920×1080).
💡 Good System: If a commerce happens on a pair whose chart just isn’t open, the bot will momentarily open a digital chart, take a screenshot, and shut it.
📰 Further Options
- Information Monitor: The bot displays the financial calendar.
- InpNewsBefore: What number of minutes earlier than high-impact information (3 bulls) to ship an alert.
- InpNewsUSD: USD information alerts will at all times be despatched.
- Every day Digest: Every day report. On the specified time ( InpDailyTime ), the bot will ship your every day buying and selling statistics.
❓ Ceaselessly Requested Questions (FAQ)
Q: The bot says “WebRequest unavailable” within the journal.
A: You skipped Step 1. Add https://api.telegram.org to the terminal settings.
Q: Messages arrive, however emojis present up as query marks ???.
A: When saving the template file (.txt), select UTF-8 encoding.
Q: The bot takes too lengthy to ship screenshots.
A: Strive decreasing the InpScreenDelay parameter or the picture decision.