Get Started
← Blog · Jul 30, 2026 · 7 min read

TradingView Webhooks Explained: Setup, Placeholders & JSON Examples

Quick answer: a TradingView webhook is an HTTP POST request that TradingView sends to a URL of your choice the moment an alert fires. Whatever you write in the alert's Message box becomes the request body. Point that URL at a service like CopyConnectFX and the alert becomes a Telegram message, a log entry — or eventually, a real order.

How the request actually works

When your alert condition triggers, TradingView sends a POST to your webhook URL within about a second. The body is exactly your alert message — plain text or JSON. There is no retry queue on TradingView's side worth relying on, so your endpoint should be fast and always online (this is why hosting your own bot script on a laptop fails eventually).

Every placeholder worth knowing

Strategy alerts unlock the most useful ones:

Copy-paste message templates

Simple price alert

🚨 {{ticker}} crossed your level
Price: {{close}} ({{interval}}m)

Strategy signal with direction

📊 {{ticker}} — {{strategy.order.action}}
Entry: {{strategy.order.price}}
Size: {{strategy.order.contracts}}
TF: {{interval}}

JSON format (for structured processing)

{"message": "🟢 BUY {{ticker}} @ {{close}} | TF {{interval}}"}

CopyConnectFX accepts both: raw text is forwarded as-is, and if you send JSON with a message field, that field becomes the Telegram message.

Common mistakes that break webhooks

FAQ

How fast are webhook alerts? TradingView typically fires within ~1 second of the condition. CopyConnectFX adds a few hundred milliseconds of relay time — end-to-end you're usually under 2 seconds.
Can one alert hit multiple webhooks? TradingView allows one webhook URL per alert. To fan out to several destinations, use a relay that supports multi-channel delivery (on our roadmap).
Do webhooks work with indicators or only strategies? Both. Any alert — price crossing, indicator condition, or strategy order fill — can use a webhook. Strategy alerts just expose extra placeholders.
Stop reading TradingView pop-ups.
Pipe every alert into your Telegram in one webhook.
Set up your webhook →