STRATEGY Strategy · Updated April 2026 · ~4 min · For TradingView desktop 3.2.1

Wiring TradingView Signals to a Crypto Trading Bot via Webhook

TradingView webhook crypto bot illustration

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)

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.