In order to be able to get Telegram notifications from this EA you will need to create a Telegram bot, get your bot private key and your channel ID.
In this section, we run you through how to do this (no programming required)
But first, we will need to change some settings in the MT4 or MT5 terminal so that the EA can work properly with the telegram alerts
To validate your license key use the DTT Tester EA #
Configuring MT4 so that the EA and the Telegram alerts work #
To use Telegram Alerts you will need to allow web requests from https://api.telegram.org/
First, you need to open Tools>Options and click on the “Expert Advisors” tab.
Once there you need to check “Allow DLL Imports ….” and “Allow WebRequest from listed URL:”
And then add the https://api.telegram.org/ url to the list.
Creating a Telegram bot #
The first thing you will need to do is to open the Telegram app.
Then you search for the user called BotFather.
Start BotFather. #
Type “/newbot” or click on the link on the command menu BotFather shows when you start it.
Follow the instructions that BotFather gives you. #
Give your bot a name (display name)
Give it a username (this username is the one you use as the Channel Name input) (remember to input it as @yourbotname_bot)
Once you finish you will get a message like this.
The HTTP API key is your Token input. (keep this key safe as it is the equivalent to the password for your bot. Do not share it with anyone)
Getting your channel ID #
To get your channel ID or chatid there are several ways but the easiest I found is to use a bot that someone else made to do this.
Search for the user @get_id_bot or @username_to_id_bot (other bots can help you get your ID too, these 2 are the ones I have used in the past)
Start a conversation with the bot and the message will give you your Name and ChatID (That Chat ID is the value you place into the Chatid input in the EA)
In order to be able to receive messages from your bot, you will need to search its username (the one you created before) and start a conversation with it. Once that is done then you should be able to receive notifications from the EA via your new Telegram bot.
No Comment