PropHub / Automate / JSON Alert Messages
📋 Copy-Paste Templates — Updated 2026

JSON Alert Messages —
Complete Template Library

Every JSON message template you need for TradingView webhook automation. Buy, sell, close, scale in — all copy-paste ready for Traders Post and compatible tools.

What is a JSON Message?

Why Your Alert Message Must Be JSON

When TradingView fires a webhook alert, it sends the content of the alert's Message box to your automation software's URL. That software (Traders Post, AutoView etc.) needs to understand what action to take — buy, sell, which instrument, how many lots.

JSON (JavaScript Object Notation) is a structured data format that automation software can read reliably. Think of it as a precisely formatted instruction note. The structure must be exact — a missing quote or misplaced comma will cause the message to fail.

⚠️
JSON Must Be Valid — Common Mistakes
Every key and string value must be in double quotes (not single quotes). No trailing commas after the last item. Numbers do not use quotes. Copy-paste from these templates rather than typing manually to avoid errors.
Field Reference

What Each JSON Field Does

FieldPurposeCommon Values
"ticker"The instrument to trade. Use {{ticker}} to auto-fill from chart"EURUSD" or "{{ticker}}"
"action"Trade direction"buy" / "sell" / "close"
"order_type"Market or limit order"market" / "limit"
"quantity"Lot size or number of contracts0.5 / 1 / 2
"price"Limit order price (limit orders only){{close}} or specific price
"stop_loss"Stop loss price or pips offset"{{close}} - 0.0030"
"take_profit"Take profit price or pips offset"{{close}} + 0.0060"
"comment"Trade identifier — shows in MT4/MT5 trade comment"VWAP_LONG_{{timenow}}"
Essential Templates

Core Trade Messages

▲ Market BuyBUY
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "market",
  "quantity": 1,
  "comment": "BUY_{{timenow}}"
}
▼ Market SellSELL
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": 1,
  "comment": "SELL_{{timenow}}"
}
▲ Buy with SL/TPBUY
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "market",
  "quantity": 1,
  "stop_loss": 30,
  "take_profit": 60,
  "comment": "BUY_SL30_TP60"
}
▼ Sell with SL/TPSELL
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": 1,
  "stop_loss": 30,
  "take_profit": 60,
  "comment": "SELL_SL30_TP60"
}
✕ Close All PositionsCLOSE
{
  "ticker": "{{ticker}}",
  "action": "close",
  "quantity": "100%",
  "comment": "CLOSE_ALL"
}
✕ Close 50% of PositionPARTIAL
{
  "ticker": "{{ticker}}",
  "action": "close",
  "quantity": "50%",
  "comment": "PARTIAL_CLOSE_50"
}
⚡ Limit Buy OrderLIMIT
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "limit",
  "price": "{{close}}",
  "quantity": 1,
  "stop_loss": 30,
  "take_profit": 60,
  "comment": "LIMIT_BUY"
}
🔄 Reverse PositionREVERSE
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": "200%",
  "comment": "REVERSE_LONG_TO_SHORT"
}
💡
Stop Loss & Take Profit — Two Ways to Set Them
You can set SL/TP in the JSON as a pip offset from entry (numbers like 30, 60) or configure them inside Traders Post's Strategy settings. For prop firm trading, we recommend setting them in Traders Post — this lets you adjust them without recreating your TradingView alerts.
Strategy-Specific Templates

Ready-to-Use Messages for PropHub Indicators

Extended VWAP Reversal

VWAP LongBUY
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "market",
  "quantity": 1,
  "comment": "VWAP_REV_LONG"
}
VWAP ShortSELL
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": 1,
  "comment": "VWAP_REV_SHORT"
}

WCR System

WCR Weekly LongBUY
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "market",
  "quantity": 1,
  "comment": "WCR_WEEKLY_LONG"
}
WCR Daily ShortSELL
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": 1,
  "comment": "WCR_DAILY_SHORT"
}

London Breakout

London Break LongBUY
{
  "ticker": "{{ticker}}",
  "action": "buy",
  "order_type": "market",
  "quantity": 1,
  "comment": "LDN_BRK_LONG"
}
London Break ShortSELL
{
  "ticker": "{{ticker}}",
  "action": "sell",
  "order_type": "market",
  "quantity": 1,
  "comment": "LDN_BRK_SHORT"
}
Validation

How to Check Your JSON is Valid

Before pasting a JSON message into TradingView, always validate it. Invalid JSON silently fails — Traders Post receives the message but ignores it, and no trade executes.

Quick validation rule: every opening {"} must have a closing }, every string value must be in double quotes, and the last field must NOT have a trailing comma.

🚨
Most Common JSON Mistakes
  • ❌ Trailing comma: "quantity": 1, on the last line
  • ❌ Single quotes: 'action': 'buy' — must use double quotes
  • ❌ Number as string: "quantity": "1" — numbers don't use quotes
  • ❌ Missing closing brace — always end with }