Setting up TradingView Webhooks
Copy Webhook URL
You can access this from here: https://dash.hextrade.io/accounts -> Webhooks
TradingView Webhook Format
For TradingView alerts, use this JSON structure:
{ "ticker": "NQ", "action": "{{strategy.order.action}}", "sentiment": "{{strategy.market_position}}", "quantity": "{{strategy.order.contracts}}", "price": "{{close}}", "platformType": "projectx", "accountId": "your_account_id", "tp": "100", "sl": "20" }
Note: Stop Loss (sl) and Take Profit (tp) values are calculated in ticks.
TradingView Alert Setup
In your TradingView Pine Script strategy:
Set the webhook URL as the alert destination
Use the JSON format above in the alert message
Replace
your_account_id
with your actual account ID
Field Mapping
TradingView → API
ticker
→symbol
action
→side
sentiment
→sentiment
quantity
→quantity
price
→price
Required Fields
platformType
(projectx, alpaca, etc.)accountId
(your account ID)symbol
orticker
quantity
side
oraction
Supported Platforms
We currently support ProjectX and Tradovate.
Last updated