Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

MT4 Telegram Trade Notifier (Bot API) — Deal Alerts - expert for MetaTrader 4

Views:
183
Rating:
(1)
Published:
Updated:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Overview
TelegramTradeNotify is a lightweight MT4 utility EA that sends trade notifications to Telegram using Telegram Bot API (sendMessage).

Key Features

  • Sends alerts when a trade is opened or closed (order-based detection in MT4)

  • Optional filter: BUY/SELL only

  • UTF-8 URL encoding (supports Vietnamese & emojis)

  • Optional disable web page preview

  • Simple inputs: Bot Token, Chat ID, timeout, prefix

How It Works (MT4)

  • MT4 does not provide "deal" events like MT5. This EA monitors trades by scanning OrdersTotal() and OrdersHistoryTotal() periodically.

  • When a new order appears (open) or a new record is added to history (close), the EA sends a Telegram message.

Setup

  1. Create a Telegram bot and get the bot token.

  2. Get your target chat id (user/group) or use @channelusername.

  3. In MetaTrader 4: Tools → Options → Expert Advisors
    Enable “Allow WebRequest for listed URL” and add: https://api.telegram.org

  4. Attach the EA to any chart and set:

    • InpBotToken

    • InpChatId

Notes / Troubleshooting

  • If WebRequest fails, check network/firewall/DNS and ensure the URL is allowed in MT4 options.

  • Some networks/VPS may block Telegram; switching network or using a relay server can help.

  • This EA is a notification utility only. It does not open or manage trades.

Inputs

  • InpBotToken: Telegram bot token

  • InpChatId: chat id or @channelusername

  • InpSendTestOnInit: send a test message when EA starts

  • InpNotifyBuySellOnly: notify only BUY/SELL orders

  • InpTimeoutMs: WebRequest timeout

  • InpMsgPrefix: message prefix



RiskSizer Panel Lite MT4 - Risk Percent Lot Calculator With One Click Buy Sell RiskSizer Panel Lite MT4 - Risk Percent Lot Calculator With One Click Buy Sell

RiskSizer Panel Lite is a simple MT4 trading panel that calculates an estimated lot size based on your risk percent. Drag two chart lines to set SL/TP, then use one-click BUY/SELL for fast manual execution.

Expert Advisor required to fetch news data for the FFC Calendar indicator. Expert Advisor required to fetch news data for the FFC Calendar indicator.

This is a utility Expert Advisor required to fetch news data for the FFC Calendar indicator. It uses native WebRequest to download data safely without DLLs. Install this in MQL4/Experts folder and run on a separate chart.

RatioZigZag RatioZigZag

A modification of the ZigZag indicator, where the reversal moment is determined by a specified coefficient.

MACD Sample MACD Sample

Classical MACD Sample.