TradingView

TradingView webhook automation: alert to broker order

A TradingView webhook is an HTTP POST from a Pine alert. HexTrade receives that JSON, checks the account and symbol, and routes the order to Tradovate, ProjectX, NinjaTrader, or Rithmic — hosted, no VPS.

TradingView is the research and alert layer. HexTrade is the execution layer. Copy your private webhook URL from Accounts, paste it into a TradingView alert, and send a JSON payload with platformType, accountId, ticker, and size.

Supported webhook platforms include ProjectX, Tradovate, NinjaTrader, Rithmic, TradeLocker, MatchTrader, Volumetrica, MetaTrader 5, Oanda, Hyperliquid, and Plus500. Optional fields cover take-profit and stop-loss in ticks, cooldowns, session windows, dry-run validation, and symbol overrides.

HexTrade also ships 34 TradingView scripts if you want a library instead of wiring your own Pine. Either path uses the same webhook automation and live portfolio tools.

  1. Create the HexTrade account. Sign up at dash.hextrade.io/signup and connect the broker you will route to.
  2. Copy the private webhook URL. Open Accounts → Webhooks. Treat the URL as a credential.
  3. Create the TradingView alert. On the strategy or indicator chart, Add Alert with one explicit condition.
  4. Paste the URL and JSON. Notifications → Webhook URL. Message includes platformType, accountId, ticker, action, and quantity.
  5. Validate with dryRun. Set dryRun true and fire the alert. Confirm the planned trade without sending an order.
  6. Place one micro, then read the log. Send the smallest planned size and reconcile the HexTrade execution log with the broker order.

Frequently asked questions

How do I connect a TradingView webhook to HexTrade?

Open Accounts → Webhooks, copy the URL, create a TradingView alert on your strategy, paste the URL, and send the JSON payload with platformType and accountId. Full steps live in the HexTrade webhook docs.

What is the TradingView webhook JSON format for HexTrade?

POST JSON to your private HexTrade URL. Required fields: platformType (tradovate, projectx, ninjatrader, rithmic, …), accountId, ticker, action or side, and quantity. Optional: tp and sl in ticks, dryRun true to validate without an order. Example and field list: docs.hextrade.io/pine-script-alerts.

Does this replace PickMyTrade, TradersPost, or PineConnector?

Those tools are alert-to-broker connectors. HexTrade does webhook execution plus live algorithms, portfolio analytics, and copy trading — so you are not stuck with a connector-only stack. PineConnector is MT4/MT5-oriented; HexTrade is futures-first (Tradovate, ProjectX, NinjaTrader, Rithmic).

Can I test a webhook without placing an order?

Yes. Set dryRun to true in the payload. HexTrade returns the planned trade and does not send an order.