← BACK TO BLOG

How to Set Up TradingView Webhook Alerts (Step-by-Step)

Webhook alerts are the bridge between a TradingView strategy and automated execution. If you've never set one up before, the process is simpler than it looks — here's exactly how it works.

What a Webhook Alert Actually Is

A webhook is just a message TradingView sends to a URL the instant your alert condition triggers. Instead of a popup or email, the alert fires a small JSON payload to whatever address you specify — in this case, your automation bot's webhook endpoint.

Step 1: Create a Strategy Alert

On your TradingView chart, apply your Pine Script strategy, then click the alert (clock) icon. Choose your strategy as the condition source, and set it to trigger on Order fills so every entry and exit generates an alert.

Step 2: Set the Webhook URL

In the alert's Notifications tab, check Webhook URL and paste your bot's endpoint — for Xiznit Bot, this is generated per-strategy in your dashboard.

Step 3: Configure the JSON Message

The alert message field needs a JSON payload describing the action — buy, sell, exit, or close. Your bot dashboard provides the exact schema your strategy should send.

Step 4: Test Before Going Live

Never connect a new webhook straight to a live account. Use a validator tool to send test payloads and confirm the bot parses them correctly.

Step 5: Go Live

Once test payloads pass validation, switch the strategy to your real account connection. Every signal your strategy generates executes automatically from that point on.

Common Setup Mistakes

Get Xiznit Bot →

Get Xiznit Bot →