Webhook payload format I use for TradingView strategies
By Ravi · · 156 votes · 2 comments · 5772 views
Pine alert message:
{
"secret": "{{strategy.order.alert_message}}",
"symbol": "{{ticker}}",
"action": "{{strategy.order.action}}",
"price": {{close}},
"sl": {{plot_0}},
"tp": {{plot_1}}
}
Key thing: Copygram needs `secret` to match the room's webhook secret, and `action` should be `buy` / `sell` / `close`. Anything else gets rejected.