TradingView TERMINAL
DOC AUTOMATION Updated May 2026 · ~4 min · For TradingView desktop 3.2.1

Automation

TradingView Webhook Alerts: Step One to an Automated Workflow

TradingView webhook alert illustration

Webhooks let an alert do more than call a person — it can call a program: when price triggers, TradingView sends an HTTP POST to your URL, and what happens next is up to you — log to a sheet, push to a group bot, or hand off to an order gateway.

Setup

When creating an alert, check Webhook URL (must be a public HTTPS endpoint) and write JSON in the message body, injecting live data with placeholders:

{
  "ticker": "{{ticker}}",
  "price": {{close}},
  "time": "{{timenow}}",
  "secret": "your-own-passphrase"
}

Common placeholders: {{ticker}} symbol, {{close}} trigger price, {{interval}} timeframe, {{timenow}} time.

Two security lines

  • Verify the passphrase: the URL is public and anyone can forge a trigger; carry a secret field and drop anything that fails the check;
  • Idempotency and rate limits: retries can deliver the same alert twice; if real money is downstream, the receiver must recognize duplicates and cap executions per unit time.
Honest note: webhook automation hands decisions to rules, and every hole gets found by the market. Run it against a paper account for at least a month before real money.