In TradingView: create alert → enable Webhook URL → URL https://cwebhook.com/alerts → paste JSON in the message box.

Buy vs sell

Each alert must set tradeSide to 1 (buy) or 2 (sell). Create one TradingView alert for long entries and another for short entries, each with the correct JSON.

Symbol and label

  • Set symbolId to your broker’s cTrader symbol ID (shown in the dashboard symbol list). IDs differ between brokers — always use the value from your account.
  • Add a consistent label per strategy so close and modify alerts target the right positions. See position labels.

Example open alert

{
  "key": "YOUR_CWEBHOOK_KEY",
  "symbolId": 1,
  "tradeSide": 1,
  "volumeType": 1,
  "volume": 0.01,
  "relativeStopLoss": 10,
  "relativeTakeProfit": 20,
  "label": "tv-strategy-01"
}

Use the dashboard Alert generators under Alert Code to build this JSON with your key pre-filled.

Related guides

See also the TradingView section in the docs.