RoboQuant
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

  1. Copy your webhook URL (unique token per user)
  2. Select broker account(s)
  3. Choose Strategy or Indicator alert type
  4. Copy the generated alert JSON

3. Create TradingView alert

  1. Right-click chart → Add alert
  2. Condition: your strategy or indicator
  3. Enable Webhook URL → paste RoboQuant URL
  4. Message: paste alert JSON
  5. Once Per Bar Close (recommended)
  6. 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

EnvironmentWebhook host
Productiontrading-api.roboquant.dev
Previewpreview-trading-api.roboquant.dev

Internal engineering details: docs/TRADING_CONNECTOR.md.