How to send alerts from TradingView to Telegram

In order to send an alert from TradingView to Telegram you need two things:

  1. Get the key from the ProfitRobots Telegram bot
  2. Setup Chrome Extension/Webhooks and setup alerts

How to get a secret key for the Telegram

Step 1. Find Profit Robots Bot

Use this link or just search for "Profit Robots Bot". There are some fake bots, so make sure that you are using the real one (like shown on the screenshot).

Step 2. Start a conversation.

Start a conversation with Profit Robots Bot. It should reply to you and give you a key. This is your personal key. All messages for that key will be forwarded by the bot into your private dialog with the bot.

You can always use the "Show my keys" buttons to get all your keys (you can have more than one key).

Generate a new key or delete it

You can regenerate any key. In order to do that you need:

Step 1. Push the "Manage keys" button

Step 2. Select a key you want to regenerate by clicking on its index or typing "/number"

Step 3. Push "Regenerate"

The bot will generate a new key.

To delete key you need to follow the same steps but use the "Delete" button instead of "Regenerate". But only channel/group keys could be deleted.

Creating a channel or group key.

You can send messages to Telegram channels/groups. Each channel or group will have its own secret key. Follow the next steps to get that key.

Step 1. Push the "+ Channel key" button.

The bot will send you a brief instruction and secret code to verify the channel or group.

Step 2. Add Profit Robots Bot to your channel/group or char as an administrator

Click on your channel/group name.

Telegram will show you a window with the information about your channel. Push 3 dots to get the menu and select "Manage group" or "Manage channel".

In the "Edit group" window click on "Administrators".

Push the "Add administrator" button.

Search for "@@profit_robots_bot" and select the Profit Robots Bot.

Click "OK".

For a group, you may unselect all permissions and click the "Save" button. Close all windows.

The bot will automatically detect addition to the new group and will give you the key.

For a channel leave the "Post messages" permission for the bot.

Close all windows and post the verification code into your channel from Step 1. The "write key" allows you to post messages into the channel. The "read key" allows you to get keys posted into this channel from MetaTrader 4/5 and FXTS2.

The bot should detect the verification code and give you the key for that channel. You can delete the verification code from your channel now.

How to send alerts from TradingView

There are two ways to get alerts from TradingView: Chrome Extension and webhooks.

Chrome Extension is more powerful and can catch Screeners alerts but you need to keep the browser open at all times. Alerts will be skipped otherwise.

Webhooks will work even when your PC is off. But you have fewer options for controlling alerts and you need to have a paid TradingView account for that.

Send alerts using Chrome Extension

Step 1. Install Chrome Extension

You need to install TradingView Alerts Chrome Extension from the Chrome Web Store. Click on the "Add to Chrome" button and confirm installation when Chrome will ask you for confirmation.

Step 2. Setup Chrome Extension

Right-click on the TradingView Alerts extension and select Options.

Put your key the bot gave you on the previous steps into the Telegram/Discord Key. Push the "Send test message" button. The bot should send the test message and tell you the result of the check near the "Id of the Key" field. Push the "Save" button if the message was received successfully.

Step 3. Set up alerts on TradingView

You can set up the alert like any other alert. The Chrome Extension will catch the alert and send it to the bot. But make sure you have enabled the Popups.

That's all, just keep the TradingView page opened, so the Extension can catch the alerts.

Sending alerts using webhooks

All you need is to set up the alert, check the Webhook URL option and put URL https://profitrobots.com/webhook/00000:000

Where 00000:000 is your key