Skip to main content
HelpKnowledge baseTradingView & Webhooks
TradingView & Webhooks

TradingView payload reference

Every field PipSync reads from an alert message.

Put this in the alert's Message field:

{
  "action": "{{strategy.order.action}}",
  "symbol": "{{ticker}}",
  "price": {{close}},
  "sl": 0,
  "tp": 0,
  "lots": 0.01
}

Fields

FieldRequiredMeaning
actionyes"buy", "sell" or "close". "close" closes the open position on that symbol.
symbolyesThe instrument name as your broker spells it — XAUUSD, US30, EURUSD.
pricenoEntry price. 0 means execute at market.
slnoStop-loss price. 0 omits it, subject to the completeness gate.
tpnoTake-profit price. 0 omits it.
lotsnoFixed size for this alert. Omit to let your risk rules size the trade.
commentnoFree text stored with the trade.

Two things that break it

  • Invalid JSON. One missing comma, or a smart quote pasted from a document, and the whole payload fails.
  • The broker's symbol name. {{ticker}} gives TradingView's spelling, which is often not your broker's. Map it on the source if they differ.

Verifying

Fire the alert once, then open Settings → Advanced → TradingView Alerts → Recent alerts. Every inbound call is listed with instrument, direction and outcome — including the exact parser error if it was rejected.

Was this helpful?

Still stuck?

Open a ticket and we will pick it up from your account context.