From TradingView alert to exchange order: how webhook trading works

How a TradingView alert becomes an order on your own broker or exchange account via a webhook - setup, alert message, timing and safety.

· 2 min read

TradingView can send an HTTP request - a webhook - every time an alert fires. A webhook trading platform receives that request, checks it and turns it into an order on your own broker or exchange account. Your strategy keeps running in TradingView; the execution happens without you watching the chart.

The chain from alert to order

  1. Your indicator or Pine Script strategy triggers an alert in TradingView.
  2. TradingView posts the alert message - a small JSON object - to your secret webhook URL.
  3. The platform validates the message, answers within milliseconds and queues the signal.
  4. A worker places the order through the API key of your broker account and records the result.

What you need

  • A TradingView plan that allows webhooks (paid plans) and two-factor authentication on your TradingView account.
  • A broker or exchange account with an API key - in TriggerPulse: Alpaca for US stocks, ETFs and crypto, or a crypto exchange such as Binance, Bybit, OKX or Kraken.
  • A strategy in the platform: it links the webhook URL to one broker account.

The alert message

The message tells the platform what to do: at least the symbol, the action (buy, sell or exit) and the quantity, optionally a reference price, a stop loss and a take profit. TradingView fills placeholders like {{ticker}} and {{close}} when the alert fires. Paste only the JSON object into the message field - any extra text makes it invalid.

Timing matters

Trigger strategy alerts once per bar close. Alerts on unfinished candles can fire and then disappear when the bar closes differently. TriggerPulse also rejects signals that arrive more than 60 seconds late, so a delayed alert never opens a position at a price you did not plan for.

Safety

  • Give API keys trading permission only - never withdrawals or transfers.
  • Treat the webhook URL like a password. Rotate it if it was shared by accident.
  • Start on a paper or testnet account and watch a few signals in the trade log before going live.

Step-by-step setup, the alert message builder and every response code are in the documentation. New accounts can start on the built-in paper account with a virtual $10,000.

  • TradingView
  • webhook
  • automation
  • API keys

More from the blog

Automate your trading plan

TriggerPulse routes TradingView alerts and curated bot signals to your own broker account and sizes every order to the risk you set. Start free on a paper account.