Skip to main content

Glossary · Automation

TradingView Webhook

Last updated:

A TradingView webhook is an automated HTTP request that TradingView sends to a URL of your choice the moment a chart alert triggers, carrying the alert’s message as its payload. It turns a passive notification — a popup or email you might see minutes late — into a machine-readable event another system can act on instantly. Point the webhook at a trading platform’s endpoint, and an alert from your Pine Script strategy or indicator becomes an order request at your broker.

The mechanics: create an alert on any TradingView chart, tick “Webhook URL”, paste the receiving system’s URL, and write the alert message — usually JSON such as {"symbol": "NIFTY", "action": "BUY"} plus an identifying key. When the condition fires, TradingView POSTs that message to the URL within seconds. Webhook alerts require a paid TradingView plan; check TradingView’s current plan features.

Example

A trader’s Supertrend flip alert on the BANKNIFTY 15-minute chart carries the message {"strategy": "st-flip", "signal": "SELL"}. At 11:20 am the flip prints; TradingView calls the webhook, the receiving platform validates the key, maps “st-flip” to a configured strategy, and places the mapped order — for instance shorting one lot of 35 via the connected broker — while the trader is away from the screen. Illustrative flow, not a recommendation.

Why it matters

Webhooks are the most accessible bridge between charting and execution for Indian retail traders: strategy logic stays in TradingView, while order handling, risk checks and broker connectivity live on the receiving platform. The design caveats are real — webhooks fire at most once per alert, carry no retry guarantee, and need safeguards against duplicate or stale signals.

In INDfolio AI, TradingView alerts connect to all seven supported brokers through a webhook URL — see TradingView automation.

← All glossary terms

See the concept in a real backtest.

Build a strategy in plain English and watch every metric on this page come to life — free, on NSE data.

Free · No card

Create your account

By continuing you agree to our Terms and Privacy Policy.