TradingView Webhook And Signal Filter
The TradingView signal filter lets a saved bot receive a webhook signal and use it as an entry or exit condition. The current bot editor generates a bot-specific webhook URL when the configuration contains a signal_tradingview rule.
What this is
This article explains how to configure the TradingView webhook filter and what it does not do in backtests.
When to use it
Use this article if:
- your strategy starts from TradingView alerts
- you need the webhook URL for a bot
- a backtest warns that TradingView signals are ignored
Before you start
You need:
- a saved bot or bot draft with a TradingView signal rule
- a TradingView alert that can send a webhook POST
- a TradingView account if you do not already have one: Open TradingView
TradingView webhook alerts should not contain passwords, API secrets, or exchange credentials.
Step by step
Step 1: Add the signal filter
In the bot editor, open Filters and add Signal TradingView as an entry or exit filter.
For entry filters, choose the expected action:
- buy
- sell
- exit where applicable
Step 2: Copy the webhook URL
The editor shows a URL like:
/api/v1/webhook/tradingview?token=...&symbol=...
Paste that URL into the TradingView alert Webhook URL field.
Step 3: Choose alert message format
For a simple alert, send JSON:
{"action":"buy"}
For a TradingView strategy alert, the editor shows the message template:
{{strategy.order.action}}/{{strategy.market_position}}
Step 4: Test filters carefully
The filter tester can validate the current filter structure, but historical backtests cannot replay future webhook deliveries.
Step 5: Understand backtest behavior
During historical replay, signal_tradingview rules are ignored because historical webhook events are not available. Backtest reports can show a warning for this.
Common mistakes
- pasting an API key into the TradingView alert body
- using a webhook URL from a different bot
- expecting TradingView webhook signals to be replayed in historical backtests
- changing the bot symbol but keeping an old alert URL
Related articles
- How Entry Filters Work
- Why Backtest Is Required Before Launch
- How To Read Backtest Report