Skip to content

Docs

TradingView webhook setup for MT5, Delta, and CoinDCX

Pine alert to a live MT5 fill — or the same webhook on Delta Exchange and CoinDCX. Longer walkthroughs live on the blog.

1. Create an account

Sign up to get a license key and a unique webhook URL. See how to connect TradingView to MT5 for the full picture.

2. Install the Expert Advisor

  1. Download TV2MT5Bridge.ex5.
  2. Copy it into MQL5/Experts. No compile step — drop the EX5 in and refresh Navigator.
  3. In MT5: Tools → Options → Expert Advisors → allow WebRequest for your PineConnector domain (the same URL as the app).
  4. Attach the EA to any chart. Paste the dashboard license key into InpLicenseKey and set InpApiBaseUrl.

VPS notes: install the TV2MT5 Bridge EA. Need an always-on Windows box? Order a Windows VPS.

3. TradingView alert

Create an alert, enable Webhook URL, paste yours from the dashboard, and put this in the Message field (replace TradingView's default text). Strategy alerts should use {{strategy.order.action}} so buys and sells both work. Default strategy fills like order buy @ price filled on EURUSD are also accepted.

{
  "symbol": "{{ticker}}",
  "action": "{{strategy.order.action}}",
  "qty": 0.1,
  "sl": 50,
  "tp": 100,
  "strategy_id": "{{strategy.order.id}}"
}

action accepts buy, sell, close, closelong, closeshort. sl / tp are distances in pips. Use sl_price / tp_price for absolute prices. On the MT5 account card, Fixed lot overrides alert qty; Risk % sizes from equity and that stop. Full payload notes: TradingView webhook to MT5.

4. Confirm symbol mapping

After the EA uploads Market Watch, open Symbol mapping and confirm auto-matches. Export/import CSV if you run several accounts. Suffix pitfalls: why EURUSD.m breaks copiers.

5. Optional: Delta / CoinDCX

The webhook URL does not change. In the dashboard, open Exchanges, paste the API key and secret, then enable Send alerts here. Keys are stored encrypted. The number of exchanges that can receive alerts matches the MT5 account cap: trial and Starter (₹1,999) allow one at a time, Pro allows up to 3, Multi up to 10. Turning on an extra connection turns an older one off when you are over that cap.

Delta Exchange

Delta uses the India API for perpetual futures. BTCUSD and BTCUSDT auto-map toward BTCUSD. Entries and exits are market orders for buy, sell, close, closelong, and closeshort. Limit alerts are rejected for crypto. The amount on the exchange card is margin, converted into a whole number of contracts with the leverage you set. A kill switch, daily trade cap, and drawdown pause live on that card. Full walkthrough: TradingView to Delta Exchange.

CoinDCX

CoinDCX uses USDT-M futures. The same tickers auto-map toward B-BTC_USDT. An INR-quoted instrument can map to I-BASE_INR when that listing exists. Orders are market-only, same actions as Delta. A per-symbol quantity is sent as the order size; otherwise the card amount is converted from margin. This path does not trade spot. Full walkthrough: TradingView to CoinDCX.