TradingView Download Center

Alerts & Automation

How to Configure TradingView Webhook Alerts: Step One to Automation

TradingView webhook alert configuration 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

  1. When creating an alert, check Webhook URL and enter your receiver address (must be a public HTTPS endpoint);
  2. Write JSON in the message body, injecting live data with placeholders:
{
  "ticker": "{{ticker}}",
  "price": {{close}},
  "time": "{{timenow}}",
  "note": "68000 break plan",
  "secret": "your-own-passphrase"
}

Common placeholders: {{ticker}} symbol, {{close}} trigger price, {{interval}} timeframe, {{timenow}} time; indicator alerts can also use {{plot_0}} for the indicator value.

A minimal receiver

Anything that can receive a POST works: a 20-line Flask/Express service, a Cloudflare Worker, or an off-the-shelf automation platform that turns the webhook into a chat message. Start with "log on receipt," get the pipe working, then talk logic.

Two security lines

Honest note: webhook automation hands decisions to rules, and every hole in the rules gets found by the market. Run it against a paper account for at least a month before real money.