TradingView + Pine Script + webhook
Route Pine Script alerts to MT4, MT5 and cTrader
TheConnector receives your TradingView webhook, reads the Pine Script alert payload and routes the signal to the right MT4, MT5 or cTrader account. Basic includes 10 accounts so beginner traders can test seriously before paying.
10 connected accounts on Basic
TradingView webhook payloads from Pine Script
MT4, MT5 and cTrader covered on one public workflow
alert-payload.json
{
"account": "acct_mt5_8841",
"action": "buy",
"symbol": "EURUSD",
"volume": 0.10,
"sl": 1.0820,
"tp": 1.0910
}
Paste your per-account webhook URL into the TradingView alert, then send this JSON message. Every step (Received, Route, ACK, Delivered) stays visible in the dashboard.
Accepted webhook payload
Use a JSON alert message that matches the fields parsed by TheConnector: action, symbol, risk or fixed volume, optional SL/TP and account routing.
- ✓ action aliases: buy/long, sell/short, buystop/buy_stop, buylimit/buy_limit, closelongshort/close_long_short
- ✓ fields: symbol/pair, risk, volume/lot, sl/stop_loss, tp/take_profit, price
- ✓ routing: account/accountCode, platform and streamId/id. The per-account webhook URL carries the access key.
Why 10 Basic accounts matter
Trading is hard and many beginner strategies need time before they become profitable. Basic access reduces pressure and lets traders validate several demo or live accounts first.
- ✓ Test several brokers or terminals
- ✓ Keep demo and live accounts separated
- ✓ Grow only when the setup is proven
Technical flow
TradingView fires the alert, TheConnector accepts the webhook and the terminal robot receives only the routed instruction for its account.
- ✓ Stable JSON alert message
- ✓ Account-level routing
- ✓ Symbol mapping for broker suffixes
Related guides
FAQ
Can Pine Script send a webhook to MT4 or MT5?
Pine Script can trigger a TradingView alert. The alert sends a webhook to TheConnector, which routes it to MT4, MT5 or cTrader.
Is Basic enough to start?
Yes. Basic includes 10 accounts and daily webhook quota so beginner traders can validate their setup before upgrading.
Does TheConnector support cTrader too?
Yes. The public workflow covers MT4, MT5 and cTrader instead of stopping at MetaTrader only.