TradingView webhook

TradingView webhook for MT4, MT5 and cTrader

TradingView can send an HTTP webhook when an alert fires, but it does not execute on MetaTrader or cTrader by itself. TheConnector receives the alert, checks the payload and routes the instruction to the selected account while keeping status history visible.

TradingView webhook endpoint for alert messages MT4, MT5 and cTrader routes from one workflow Received, Routing, ACK and Delivered status checks Free pre-launch access, no payment card required
alert-payload.json
{
  "action":  "buy",
  "symbol":  "EURUSD",
  "volume":  0.10,
  "sl":      1.0820,
  "tp":      1.0910
}
अपने प्रति-अकाउंट webhook URL को TradingView अलर्ट में पेस्ट करें, फिर यह JSON संदेश भेजें। हर चरण (Received, Route, ACK, Delivered) डैशबोर्ड में दिखता रहता है।
उपलब्ध कार्रवाइयाँ
buy sell — मार्केट ऑर्डर (उपनाम long / short)
buylimit buystop selllimit sellstop — लंबित ऑर्डर — एक प्राइस फ़ील्ड जोड़ें
closelong closeshort closelongshort — उस symbol पर स्थिति(याँ) बंद करें
cancellong cancelshort — एक लंबित ऑर्डर रद्द करें
newsltplong newsltpshort — SL/TP अपडेट करें (उपनाम breakeven…)

पूरी सूची और उपनाम: कमांड सिंटैक्स संदर्भ.

What a TradingView webhook does

The webhook is the transport layer: it sends the alert message to a URL. Execution still depends on the bridge, the terminal, the broker and the account rules.

  • TradingView fires the alert
  • TheConnector validates the payload
  • The terminal receives only its routed instruction

Recommended setup path

Start with one account and one readable JSON message. Add symbol mapping, SL/TP and multi-account routing only after the first route is visible in the dashboard.

  • Create the account route
  • Copy the per-account webhook URL
  • Confirm history before increasing volume

MT4, MT5 and cTrader differences

The webhook format can stay stable, but each platform has its own terminal, permissions, symbols and execution constraints.

  • MT4: EA permissions, AutoTrading and broker suffixes
  • MT5: netting or hedging, filling mode and volume step
  • cTrader: cBot or bridge, Automate permissions and symbol names

When comparing alternatives

Compare tools on the routes they cover, how clearly they show failures, and whether you can test safely before paying or moving a live account.

  • PineConnector alternative pages should stay factual
  • cTrader support is a separate decision point
  • Late trading commands should expire, not replay

Treat the webhook URL like a password

Each account route has its own webhook URL carrying a routing token: whoever holds the URL can send signals to that route. Never paste it in a public Pine Script, a forum post or a screenshot. Requests with unknown tokens are dropped at the edge before reaching your accounts, and if you suspect a leak, pause or disable the account in the dashboard and contact support to rotate the route.

  • One URL per account route, carrying its token
  • Never publish it in scripts, forums or screenshots
  • Unknown tokens are dropped before your accounts

From first test to production

A safe ramp-up has three stages. First, a demo account and a single manual alert: watch it cross Received, Routing, ACK and Delivered in the dashboard. Then let the strategy fire real alerts toward the demo route for a few sessions and review the history — rejections, mapping gaps, quota usage. Only then point the alert at a live account, starting with minimal volume. The free Basic tier (15 webhooks per day per account) is sized exactly for this validation phase.

  • Stage 1: one manual alert to a demo route
  • Stage 2: live strategy alerts, still on demo
  • Stage 3: live account at minimal volume

FAQ

Can TradingView webhooks execute directly on MT4 or MT5?
No. TradingView sends the alert message. A bridge, terminal robot or cBot is still needed to route the instruction to the trading platform.
Which platform is best for a TradingView webhook?
Use the platform your broker and workflow already support. MT4, MT5 and cTrader have different permissions, symbols and execution constraints.
Is TheConnector a PineConnector alternative?
It can be evaluated as an alternative workflow for TradingView webhooks, especially when cTrader, EU hosting and Basic validation are important. PineConnector is a third-party brand.
Does a webhook guarantee broker execution?
No. A webhook improves routing and traceability, but execution depends on the terminal, broker, account rules, market conditions and risk settings.
Is this financial advice?
No. TheConnector routes webhook signals and shows their statuses. You keep control of the broker, accounts, strategy, volumes and risk; no financial advice or execution guarantee is provided.
What happens if an alert fires while the market is closed?
The command is rejected and the history names the reason, so you see exactly what happened. Nothing is silently retried at the next open at a price you did not expect: delivery is at-most-once, and a command past its useful window expires on a TTL.
Do I need to know how to code?
No. The alert message is a small JSON snippet you copy into TradingView's alert box — the docs and the Pine Script examples page provide ready-made templates. Pine Script knowledge only matters if your strategy itself generates the alerts programmatically.