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.
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.
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.
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.
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.
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.
Once test payloads pass validation, switch the strategy to your real account connection. Every signal your strategy generates executes automatically from that point on.