Legacy · TradingView
TradingView Deployment (Legacy)
Legacy path. For native compiled RoboQuant strategies, use Live deployment. This page covers Pine Script on TradingView → webhook → broker.
Live trading connects TradingView alerts to broker APIs through the RoboQuant Trading Connector.
Architecture
TradingView alert (JSON message)
↓ POST
https://trading-api.roboquant.dev/webhook/{your-token}
↓
Trading Connector (FastAPI on EC2)
↓
Broker API (Tradovate, Binance, Bybit, Kraken, HyperLiquid)
Setup checklist
1. Connect a broker
Dashboard → Webhooks → connect Tradovate, Binance, Bybit, Kraken, or HyperLiquid.
2. Configure webhook
- Copy your webhook URL (unique token per user)
- Select broker account(s)
- Choose Strategy or Indicator alert type
- Copy the generated alert JSON
3. Create TradingView alert
- Right-click chart → Add alert
- Condition: your strategy or indicator
- Enable Webhook URL → paste RoboQuant URL
- Message: paste alert JSON
- Once Per Bar Close (recommended)
- Create alert
Strategy vs indicator alerts
Strategy mode — TradingView fills order fields from strategy variables ({{strategy.order.action}}, etc.).
Indicator mode — You must set side and quantity explicitly in the JSON template.
See Webhook reference for the full JSON schema.
Environment URLs
| Environment | Webhook host |
|---|---|
| Production | trading-api.roboquant.dev |
| Preview | preview-trading-api.roboquant.dev |
Internal engineering details: docs/TRADING_CONNECTOR.md.