Skip to content

Alert Webhook Format

JSON webhook format for automation and external systems.

Setting Up Alerts

  1. Right-click indicator → Add Alert
  2. Select condition (e.g., "RQF: Long Entry Signal")
  3. Configure webhook URL
  4. Set expiration and save

Available Alerts

Alert Event Description
Sweep Low (S1) SWEEP_LOW Bullish sweep detected
Sweep High (S1) SWEEP_HIGH Bearish sweep detected
Bullish MSS MSS_BULLISH Bullish MSS confirmed
Bearish MSS MSS_BEARISH Bearish MSS confirmed
Long Entry LONG_ENTRY Long entry signal
Short Entry SHORT_ENTRY Short entry signal
Failed MSS FAILED_MSS Sweep failed to produce MSS
Invalidated INVALIDATED Setup invalidated
Complete COMPLETE Setup reached target

JSON Format

Entry Signal

{
  "event": "LONG_ENTRY",
  "symbol": "{{ticker}}",
  "timeframe": "{{interval}}",
  "price": {{close}},
  "time": "{{time}}"
}

MSS Confirmed

{
  "event": "MSS_BULLISH",
  "symbol": "{{ticker}}",
  "timeframe": "{{interval}}",
  "price": {{close}},
  "time": "{{time}}",
  "action": "LOOK_FOR_LONG"
}

Setup Complete

{
  "event": "COMPLETE",
  "symbol": "{{ticker}}",
  "timeframe": "{{interval}}",
  "price": {{close}},
  "time": "{{time}}",
  "status": "TARGET_REACHED"
}

Available Placeholders

Placeholder Value
{{ticker}} Symbol (e.g., MNQ1!)
{{interval}} Timeframe (e.g., 5)
{{close}} Close price
{{open}} Open price
{{high}} High price
{{low}} Low price
{{time}} Timestamp

Webhook Integration

With Windmill/n8n

  1. Create HTTP trigger flow
  2. Set webhook URL in TradingView
  3. Parse JSON payload
  4. Route to execution

Security

  • Use HMAC signature verification
  • Validate payload structure
  • Check symbol whitelist