STRATEGY Strategy · Updated April 2026 · ~4 min · For TradingView desktop 3.2.1
Wiring TradingView Signals to a Crypto Trading Bot via Webhook
Webhooks let a TradingView alert do more than call a person — it can call a program: when price or an indicator triggers, it POSTs to your URL, which can hit an exchange API or bot to place an order.
Setup
When creating an alert, check Webhook URL (must be a public HTTPS endpoint) and write JSON in the message body with placeholders:
{
"ticker": "{{ticker}}",
"action": "buy",
"price": {{close}},
"time": "{{timenow}}",
"secret": "your-own-passphrase"
}
Common placeholders: {{ticker}} symbol, {{close}} trigger price, {{interval}} timeframe. The receiver can be a small service or an off-the-shelf signal forwarder.
Two security lines (read before real money)
- Verify the passphrase: the URL is public and anyone can forge a trigger; carry a secret and drop anything that fails the check;
- Idempotency and rate limits: retries can deliver the same alert twice; the receiver must recognize duplicates and cap orders per unit time — otherwise one bug is a chain of orders.
Honest note: automation hands decisions to rules, and every hole gets found by the market. Run on a testnet or tiny size for a month first. And disable withdrawal permission on the exchange API key.