Connecting TradingView Alerts to OctoBot Through Webhooks
Summary
This guide explains how to make an OctoBot instance reachable by TradingView or another webhook sender so incoming alerts can trigger a webhook-enabled trading mode. It outlines three connectivity approaches: the OctoBot cloud extension, Ngrok as an intermediary, or a manually exposed IP address and port. It then walks through enabling the webhook service, configuring the chosen connection, activating a compatible tentacle, restarting OctoBot, and locating the generated webhook address in the interface or logs.
The page is operational setup guidance rather than a trading strategy, and it supplies no evidence about signal quality, execution results, or profitability. It notes that a free Ngrok address changes after each OctoBot restart, requiring the sender’s alert configuration to be updated. Manual exposure also requires matching network and container port settings. A TradingView-related profile must be active for the webhook address to appear. Users still need to configure and validate their own alert messages and trading behavior; the guide does not specify a risk-management method.
Key ideas
- OctoBot can receive TradingView alerts through a webhook when the bot is reachable from the sender.
- The guide offers cloud extension, Ngrok, and manual public network configuration as connectivity options.
- A webhook-enabled trading tentacle must be active, and OctoBot must be restarted before using the displayed address.
- A free Ngrok address may change on restart, requiring the alert sender to be updated.
- The guide covers connectivity setup but does not assess trading performance or define risk controls.
Tags
Full text
# Using a webhook with OctoBot
---
title: "Using a webhook"
description: "Learn how to configure your OctoBot webhooks to trade from TradingView signals using OctoBot cloud, Ngrok or your own setup."
sidebar_position: 5
---
# Using a webhook with OctoBot
There are many ways to wake your OctoBot up and make it do something,
one of them is using a webhook. With a webhook, you can automatically
send messages to your OctoBot from any website supporting this system.
<a href="https://www.tradingview.com/?aff_id=27595" rel="nofollow">TradingView</a> is one of them.
In order to be able to receive TradingView webhook's message, you need to make your OctoBot reachable from TradingView. For this, there are 3 options:
- Use the [Premium OctoBot Extension](/guides/octobot-configuration/premium-octobot-extension) and simply connect your OctoBot through the OctoBot cloud secure server.
- Use <a href="https://ngrok.com/" rel="nofollow">Ngrok</a> to act as a secure intermediary between the internet and your OctoBot.
- Or setup your own public IP and port configuration
## Setting up your OctoBot's webhook
1. In your OctoBot configuration, from the `Accounts` tab, in `Interfaces`, add the webhook service.
2. Set up your webhook configuration using one of the following options:
- Option 1: Using [Premium OctoBot Extension](/guides/octobot-configuration/premium-octobot-extension): just select the `Enable-Octobot-Webhook`
- Option 2: Using Ngrok :
1. Select `Enable-Ngrok`, uncheck `Enable-Octobot-Webhook`
2. Create an account on <a href="https://ngrok.com/" rel="nofollow">ngrok</a>
3. Copy your Ngrok token from https://dashboard.ngrok.com/get-started/your-authtoken
4. Enter your Ngrok token into your OctoBot's webhook service configuration.
- Option 3: Manual configration: if you are familiar with webhook setups and your OctoBot is exposed to the Internet, you can disable both `Enable-Ngrok` and `Enable-Octobot-Webhook` and configure the listening port and IP for the webhook yourself.
_Note: With this manual configuration, when using docker, you also need to add `-p 9000:9000` after `docker run`_.
3. Activate a tentacle using a webhook service (like the TradingView signals trading mode).
4. Restart your OctoBot.
5. The webhook address will be displayed on your OctoBot configuration, on to the TradingView inteface and printed in your logs.
:::info
**Your Webhook URL is missing?** For your webhook URL to be displayed, a
TradingView-related profile has to be active. If you don't see the URL in your
TradingView configuration, select a TradingView profile in your profile
configuation and restart your OctoBot.
:::
Follow [this guide](/guides/octobot-interfaces/tradingview) to know more on how to send TradingView signals to your OctoBot.
## Configuration examples
### Configuration option 1: Using the Premium OctoBot Extension
**TradingView** and **Webhook** configuration in the Accounts tab

The Webhook URL is also printed in logs

### Configuration option 2: Using Ngrok
TradingView and Webhook configuration in the Accounts tab

The Webhook URL is also printed in logs

Activate a tentacle using a webhook service (like the TradingView signals trading mode)
## About ngrok.com
You can use Ngrok with a free account, the only drawback of having a
free version is that your webhook address will change at every OctoBot
restart, you will have to update it on your message sender <a href="https://www.tradingview.com/?aff_id=27595" rel="nofollow">TradingView</a>.
To avoid having to re-enter your IP each time, you can either:
- Use the [Premium OctoBot Extension](/guides/octobot-configuration/premium-octobot-extension): in this case you only pay once and always have your OctoBot secure webhook ready to receive your TradingView alerts.
- Pay a Ngrok monthly subscriptionShown in full with attribution under the source's licence. Licence: GPL-3.0
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.