الأسواق مباشرة
    كل المقالات MT5

    How to Set Up Free Telegram Alerts From MetaTrader 5

    KastleChart Team · 30 نوفمبر 2026 · مدة القراءة: 1 د
    How to Set Up Free Telegram Alerts From MetaTrader 5

    Running an Expert Advisor on a VPS is great—until you want to know what it’s actually doing while you’re away from your desk. Instead of logging into Remote Desktop from your phone ten times a day, you can have MT5 push instant trade notifications directly to a private Telegram chat for free.

    Step 1: Create Your Telegram Bot

    Open Telegram, search for @BotFather, and send /newbot. Pick a name and username, and BotFather will hand you an HTTP API Token. Next, send a message to your new bot (or add it to a private channel) and grab your Chat ID using a helper bot like @userinfobot.

    Step 2: Whitelist Telegram Inside MT5

    By default, MetaTrader 5 blocks Expert Advisors from making outbound web requests. To allow Telegram messages:

    1. Open MT5 and go to Tools → Options → Expert Advisors.
    2. Check Allow WebRequest for listed URL.
    3. Add https://api.telegram.org and click OK.

    Step 3: Send a Test Alert

    Inside your MQL5 EA (or a free Telegram notifier utility from the MQL5 codebase), paste your Bot Token and Chat ID. The EA simply calls WebRequest("POST", url, ...) whenever OnTradeTransaction() detects a new fill or closed position.

    Once connected, you’ll get clean messages showing symbol, entry price, lot size, and closed P&L within a second—without paying for SMS or third-party alert services.