- Create a new account on https://www.make.com/en/register?pc=algobot
- Create a new scenario on the top right of the page
- Add a new webhook module
- Choose “Custom webhook”
- Click “Create a webhook” and MAKE will generate a random webhook address
- Give the webhook a name, for example “AlgoBot”
- Click “Save” and your private webhook address is created
- Add a new Telegram Bot module
- Choose “Send a text message or a reply”
- First we need to add a new connection name, for example “Algobot”
- To get the private token we need to open Telegram on our computer or smartphone.
- In your Telegram app search for “Botfather” or click on https://telegram.me/BotFather
- To create a new bot type “/newbot” in the message box and press enter, then follow the procedure on the screen. PS: please give your bot a different name than displayed on the screenshot. All bots need unique names.
- You have received a message from BotFather containing the token, which you can use to connect the Telegram Bot to MAKE. Fill in the token in the correct field.
- Next we have to get the Chat ID from our newly created channel in order for the AlgoBotOffical_bot to send the signals to the correct channel.
- Go to Telegram and create your new channel where you want the TradingView signals to be posted.
- Name it as you like, in this example we name it “AlgoBot”.
- When you go into the channel settings, click on “Administrators”
- Add your previous created bot (@AlgoBotOffical_bot) to your channel as an admin
Set permissions
- Click again on “Add Admin” and search “tradingview”
- Add the TradingView To Telegram Bot (https://t.me/tradingviewtobot) and click done
- Go back to your channel and type “/chatid”
- The channel will give you a 13 number code back with the format “-100XXXXXXXXXX”
- Copy this code in your “Chat ID” field on the make website.
- The next procedure is to get the correct value for the “Text” field.
- In order to be able to close this Telegram Bot window, fill in the text field as below and choose “ExecutionID”, we will change this later when we have completed the test alert in Tradingview.
- Go back to your Webhook module in MAKE and click “Redetermine data structure”.
- In the meantime go to your Tradingview chart and create a test alert (for example a “Greater then” alert that will trigger immediately, for example BTC > 1000)
- Go to the notifications tab and paste the webhook address we created before.
- Create the alert
- The alert should trigger immediately because the value you put in is true (BTC > 1000), then MAKE should detect the alert coming in displaying a SUCESS message.
- Now navigate back to the Telegram module and find the “Text” field from 26). Remove the “Execution ID” and replace it by clicking on “Value”. This “Value” did not appear before since we hadn’t trigger the alert yet. Now it does appear and we can use it.
- Don’t forget to save the scenario and turn it on after you saved it so it’s ready to receive incoming alerts.
- When the webhook module and Telegram module are set up, don’t forget to add the error handler. It will reduce problems and errors because Tradingview sometimes sends an empty payload to the webhook at the moment of creation, and the error handler prevents the scenario from stopping in that case. Right click the Telegram module and add error handler.
- Select the “ignore” option.
- Only now we are sure the connection between our Tradingview signals and our Telegram channel works because we set up MAKE in a correct way.