How fabioo29/telegram-trading-bot works
Project type and purpose
• This is a MetaTrader 5 Expert Advisor (EA) written in MQL5 that connects to the Telegram Bot API.
• Purpose: allow a trader to send simple Telegram commands on their mobile device to open, modify, close, or alert on Forex trades via MetaTrader.
File structure
• Top-level:
• trader-bot.mq5 → main EA source
• assets/ → images/documentation (mockups)
• / → reusable modules
– Comment.mqh → helper for formatted output/logging
– Common.mqh → shared constants, utility functions
– Telegram.mqh → wrapper around HTTP requests to Telegram API
– jason.mqh → JSON parsing/serialization
• No separate frontend/backend folders; EA code runs inside MetaTrader’s runtime.
• No build scripts beyond MetaEditor compile; deployment is loading the compiled .ex5 into the terminal.
README for additional insights
• Describes setup steps inside MetaEditor/MetaTrader and Telegram URL whitelisting.
• Enumerates all bot commands (buy/sell, list, alerts, etc.).