• Overview
  • Reviews
  • Comments (3)
  • What's new

MT4 to Tlgram lite

This EA only sends text messages to a Telegram group or channel of your choice. The messages are customizable to information about trading activity. Also it shows the daily account PnL. Several instances of this EA can be used simultaneously in the same MT4 terminal but ensure that each one is placed in different chart and each is configured to watch one magicnumber only.

I have tested this EA with forex symbols but it should work fine with any MT4 symbol (e.g. indexes, commodities, stocks, cryptocurrencies)

This is a lite version. Click to get the full version of this EA

This lite version only shows information about new trades opened, it does not show messages for closed or modified trades and it applies a delay of 300 seconds between messages.


Create a Telegram bot

Before running the Telegram EA you must create your own Telegram bot that will be the sender of the messages created by the Telegram EA. For creating the Telegram bot follow these steps:

  1. In Telegram, search for "botfather" or send a message to @BotFather
  2. Type /newbot and follow instructions to give a it name and an username
  3. Copy the API token
  4. If you don't have it already, create the channel or group
  5. Open the channel/group Info, then Manage, Add Administrators, type the bot username, and clik Save
  6. Send any message to the channel/group like "hello world"
  7. Open the following URL in a browser: https://api.telegram.org/bot<token>/getUpdates (dont forget adding your bot token to the URL)
  8. Search for the string "chat":{"id": to find a large negative number. This is your group or channel ID
  9. Copy the chat ID
  10. Test the bot with this URL in a browser (add the token and chatID first): https://api.telegram.org/bot<token>/sendMessage?chat_id=<ChatID>&text=I%20m%20the%20bot
  11. In MT4, add the following URI for webrequest to "Options > Expert Advisors" https://api.telegram.org

Enter the token and chat ID into the Telegram settings. Then run the EA from a MT4 chart.

For your safety, this EA does not need DLL imports or live traing enabled. It can work using investor password.

Recomended running this EA from a VPS to ensure non-stop execution.

The MT4 to Telegram Messenger comes pre-configured to send messages to the channel https://t.me/mt42tlgram for your testing convenience.


Expert Advisor Settings

Following are the settings of the Telegram EA that allow to customise the messages by showing or hiding information and adding custom texts:

  • Telegram group or channel ID - This is a long negative number of the Telegram group or channel from step 3
  • Telegram bot Token - The BotFather will give provide the token ID of you bot as per step 8
  • Enable Telegram EA? - TRUE/FALSE for enabling this EA
  • Send to telegram EA status - TRUE/FALSE for sending EA status messages like errors, EA start/stop
  • Telegram EA name to show in messages - Custom EA name
  • Seconds for scanning open trades - Frequency in seconds for scanning current open trades. By default is 5 seconds
  • Seconds for sending messages to Telegram - Frequency for sending daily PnL messages. By Default 5 minutes if there is any change
  • Show daily PnL at set message frequency? - TRUE/FALSE for this message
  • Add text before message - Custom free text
  • Add EA name - TRUE/FALSE to show custom EA name
  • PnL shown in pips or account currency, or both - Show PnL in PIP/Currency/Both
  • Only trades with this MagicNumber, or -1 for all - Filter trade by magic, -1 for all trades
  • Add text after message - Custom free text
  • Show emojis - TRUE/FALSE to show emojis
  • Add order ticket - TRUE/FALSE to show
  • Add text before message - Custom free text
  • Add EA name - TRUE/FALSE to show custom EA name
  • Add EA's magicnumber - TRUE/FALSE to show EA's magic number
  • Enter separator, or empty to disable - Custom free text as separator
  • Add trade lots - TRUE/FALSE to show trade lots
  • Add SL priceAdd SL price - TRUE/FALSE to show SL price
  • Add TP price - TRUE/FALSE to show TP price
  • Enter separator, or empty to disable - Custom free text as separator
  • Add trade comment - TRUE/FALSE to show the trade comment
  • Add text after message - Custom free text
No reviews
Version 2.5 2018.11.01
New in MT4toTLGRM LITE v2.5
- Added button for switching ON/OFF the EA from the chart
- Added button for sending a test message to Telegram from the chart
Version 2.0 2018.07.24
MT4 to Tlgram lite version 2
Improved the EA description
Removed OnTimer() that caused handler errors. Now the EA updates every 30 minutes
Corrected several minor errors