Telegram Keyboard
- 유틸리티
- Vincenzo Vassallo
- 버전: 1.0
- 활성화: 5
Telegram Trading Panel – MT4 utility for order control via Telegram
Purpose
Utility for MetaTrader 4 to open/close orders, set SL/TP, create pending orders, and view position info directly from Telegram using inline keyboards. Designed for mobile/VPS use without direct terminal access.
Key features
- Telegram panel with inline keyboards:
- Open BUY/SELL market orders
- Close single order or “Close all”
- Pending orders: Buy/Sell Limit and Buy/Sell Stop with price and expiry
- Assisted Break Even: set SL at ±1 pip from open price with confirmation
- SL/TP by money or by pips
- Position info: P/L (profit+swap+commission), pips, distance to SL/TP, duration, prices
- Symbol info: daily high/low, average price, range, volatility %
- Quick notes: save/view notes
- Lot handling: automatic normalization to symbol min/max/step
- Anti‑flood: internal rate limiting
- Chat cleanup: temporary messages auto-delete
- Instruments: Forex, indices, commodities, crypto (if broker supports)
Requirements
- MetaTrader 4 for Windows 10/11
- Stable internet connection (VPS recommended)
- Active Telegram Bot (token from @BotFather) and Chat ID (user or group)
- MT4: Tools > Options > Expert Advisors → enable “Allow WebRequest for listed URL” and add:
https://api.telegram.org
Installation (5 steps)
- Create a bot with @BotFather and copy the TOKEN.
- Get your CHAT_ID (e.g., via @userinfobot).
- In MT4: Tools → Options → Expert Advisors → enable “Allow WebRequest” and add https://api.telegram.org.
- Attach the EA to a chart, enable AutoTrading, set inputs: TOKEN, CHAT_ID, MT4_ID.
- In Telegram send /menu to open the panel.
Inputs
- TOKEN (string): Telegram Bot token.
- CHAT_ID (string): destination chat id.
- MT4_ID (string): instance label shown in the panel (e.g., VPS1).
Operating rules
- Market orders: use current BID/ASK, check IsTradeAllowed and symbol availability.
- Pending orders: validate price vs type (Limit/Stop), optional expiry.
- SL/TP by money: conversion via tick value and current lot.
- Pip calc: automatic per symbol digits (3/5 decimals).
- Break Even: allowed only if position ≥ +1 pip; SL at open ±1 pip.
Known limitations
- Strategy Tester: Telegram calls may not work; use demo/live.
- Telegram limits: for reliability, keep ≤ ~1 msg/second per chat.
- Latency depends on network/VPS and polling interval (1s).
Troubleshooting
- No Telegram messages: ensure WebRequest is enabled and https://api.telegram.org is listed; verify TOKEN/CHAT_ID.
- Order open error: check symbol, market hours, trading permissions, connection.
- Unexpected SL/TP in $: contract/tick value differences; test on demo and adjust lot.
Compatibility
- Works with all MT4 broker symbols: Forex pairs, indices, XAU/XAG/OIL, crypto, other CFDs.
- Auto adapts to digits, tick value, min/max lot, lot step.
Updates and support
- Changelog in “Versions”.
- FAQ/setup instructions in this description.
- Use Market “Comments” for questions/feedback.
Warnings
- Utility for order execution/management. No strategies, signals, or profit promises.
- Test on a demo account before real trading.

