Person Information: Haven MT5 to Telegram
Skilled Telegram Notifier for MetaTrader 5
Product Hyperlink: Haven MT5 to Telegram
Haven MT5 to Telegram is an expert device for sending commerce notifications to your Telegram channel or non-public chat. It helps screenshots, information monitoring, automated stories, and full message customization.
🚀 Step 1. Terminal Preparation (MANDATORY)
To permit the Professional Advisor to ship messages, it’s essential to grant the terminal entry to Telegram servers.
- Open your MT5 terminal.
- Go to the menu: Instruments -> Choices -> Professional Advisors tab.
- Test the field Permit WebRequest for listed URL.
- Click on the Add (+) button and enter the next deal with:
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.
How one can discover your Chat ID?
- Discover the @userinfobot (or related) and press Begin. It would 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… (you’ll find 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 absolutely customise the look of your notifications. The EA helps HTML formatting and particular tags.
📋 Checklist of Out there Tags
The EA will robotically exchange these phrases with precise commerce information:
| Tag | Description | Instance |
|---|---|---|
| {SYMBOL} | Buying and selling pair | EURUSD |
| {TYPE} | Operation kind | BUY / SELL |
| {LOT} | Lot quantity | 0.10 |
| {PRICE} | Present / closing worth | 1.0850 |
| {OPEN_PRICE} | Opening worth | 1.0820 |
| {PROFIT} | Revenue (with foreign money) | +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} | Consequence icon | ✅ or ❌ |
📂 Superior Configuration (Through Information) — RECOMMENDED!
Enhancing lengthy textual content within the slim MT5 settings area is inconvenient. It’s higher to make use of textual content recordsdata.
📍 The place to create recordsdata and methods to hyperlink them? (Necessary)
The EA works inside a particular protected folder (“sandbox”).
- Within the terminal, click on File → Open Information Folder.
- Go to the MQL5 folder, then into the Information folder.
- Create your template recordsdata precisely right here (Proper-click → New → Textual content Doc).
⚠️ Watch the file extension! If file extensions are hidden in your OS, you would possibly by accident 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 (underneath 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 recordsdata (use UTF-8 encoding):
1. File: pending.txt (For pending orders)
⏳ <b>PENDING ORDER</b>
🤖 EA Assistant
📊 Image: <b>{SYMBOL}</b>
💠 Sort: <b>{TYPE}</b>
💼 Quantity: <b>{LOT} lot</b>
🎯 Worth: {PRICE}
⏱️ Time: {TIME}
🆔 Order #{TICKET}
2. File: open.txt (For market entry)
🆕 <b>MARKET ENTRY</b>
🤖 EA Assistant
📊 Image: <b>{SYMBOL}</b>
{TYPE_ICON} Sort: <b>{TYPE}</b>
💼 Quantity: <b>{LOT} lot</b>
💰 Open Worth: {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}
⏱️ Period: {DURATION}
💡 Tip: If the InpFile… area is crammed 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/Pink zones) on the closing screenshot.
- InpWatermarkText: Watermark textual content (e.g., your channel title).
- InpHeight / InpWidth: Picture decision (default is 1920×1080).
💡 Good System: If a commerce happens on a pair whose chart shouldn’t be open, the bot will momentarily open a digital chart, take a screenshot, and shut it.
📰 Extra Options
- Information Monitor: The bot screens the financial calendar.
- InpNewsBefore: What number of minutes earlier than high-impact information (3 bulls) to ship an alert.
- InpNewsUSD: USD information alerts will all the time be despatched.
- Day by day Digest: Day by day report. On the specified time ( InpDailyTime ), the bot will ship your every day buying and selling statistics.
❓ Continuously 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.

























