All docs

Alert message JSON

This is the canonical alert message to paste into TradingView. TradingView placeholders fill live when the alert fires.

{
  "symbol": "{{ticker}}",
  "side": "buy",
  "price": "{{close}}",
  "entry2": "",
  "tp1": "", "tp2": "", "tp3": "", "tp4": "", "tp5": "", "tp6": "",
  "sl": "",
  "lev": "",
  "margin": "",
  "tf": "{{interval}}",
  "note": ""
}

Placeholders that fill live

  • {{ticker}}: the symbol the alert fired on.
  • {{close}}: the closing price at fire time.
  • {{interval}}: the chart timeframe.
  • Indicator users can wire {{plot_0}}, {{plot_1}} and so on into any field.

Build it interactively

The free TradingView alert JSON generator builds this message from a form and shows a live preview of the card it produces. Copy the result straight into TradingView.

Custom text templates

Webhooks also support a custom message template with {{variable}} substitution for full control of the text caption. Unknown fields in your alert pass through and can be used in the template.