TradingView to MT4

Automate TradingView alerts to MT4

Turn a TradingView alert into a MetaTrader 4 order flow without manual copying. TheConnector receives the webhook, validates the target account and routes the signal to the connected MT4 terminal.

TradingView webhook to MT4 terminal Symbol mapping for MT4 broker suffixes Plan quotas and pre-launch availability
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…)

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

When this workflow fits

Use this route when your strategy logic lives in TradingView but execution still belongs on MetaTrader 4.

  • Pine Script alerts routed to MT4
  • Routing to one or several allowed accounts
  • Daily webhook limits enforced by plan

Technical points to lock

Symbol mapping matters when the broker adds suffixes, prefixes or instrument names that differ from TradingView.

  • Map XAUUSD to XAUUSDm or GOLD when required
  • Keep the webhook payload stable
  • Test every MT4 account before scaling volume

Prepare routing before the demo test

The MT4 workflow connects pricing, symbol mapping and documentation so setup stays easy to follow.

  • Review Basic access and future plans
  • Understand broker symbol mapping
  • Read the setup guides

Set up the MT4 Expert Advisor in a few minutes

The execution leg on MT4 is a small Expert Advisor. Download it from the install guide, attach it to one chart, paste the AccountCode and routing token shown in your dashboard, and enable AutoTrading. As soon as the EA connects, the account turns Connected in the dashboard and you can send a first test alert to a demo account before anything live.

  • Download the EA from the MT4 install guide
  • Paste the AccountCode and routing token from the dashboard
  • Enable AutoTrading and keep the terminal open

A minimal, readable JSON payload

The TradingView alert message is plain JSON, not a proprietary syntax: an action (buy or sell), a symbol and a volume are enough for a first order, with optional stop-loss and take-profit fields when your strategy needs them. Because the format is the same across platforms, the alert you write for MT4 today can be reused unchanged if you later route to MT5 or cTrader.

  • "action": "buy", "symbol": "EURUSD", "volume": 0.10
  • Optional SL/TP fields when the strategy needs them
  • The same payload works later on MT5 and cTrader

Webhook received but not executed: read the statuses

When an alert does not become an MT4 order, the dashboard shows exactly where the chain stopped instead of leaving you to guess. A webhook stuck before ACK usually means the terminal is closed or AutoTrading is off. A rejection always names its reason: an unknown broker symbol is fixed with a mapping entry, an exceeded daily quota is visible in the counters, and a command that arrived too late expires on a TTL rather than executing at a stale price.

  • No ACK: check the terminal and AutoTrading
  • Rejected symbol: add or fix the mapping entry
  • Quota or TTL: the history names the exact reason

FAQ

Can TradingView send an order directly to MT4?
TradingView sends a webhook. TheConnector turns that signal into an instruction for the connected MT4 terminal.
Is symbol mapping required?
It is required when the TradingView symbol does not exactly match the broker symbol inside MT4.
Are paid plans open?
Not yet. The pricing page presents Basic access and future Pro and Elite availability during pre-launch.
Do I need a VPS to route TradingView to MT4?
Not for the routing: TheConnector is hosted, so the webhook reception, validation and dispatch run without any server on your side. Only the MT4 terminal with the EA must stay running where your broker executes — on your PC or on any VPS you already use for MetaTrader.
Does it work with prop firm or funded MT4 accounts?
It works with any MT4 account on which your broker or prop firm allows an Expert Advisor to run. Check the firm's automation rules first — some restrict EAs, copy tools or news trading — and validate the full chain on the evaluation or demo environment before the funded account. The prop-firm guide covers risk limits and routing in detail.
How fast is an alert turned into an MT4 order?
Each step is timestamped in the dashboard — Received, Routing, ACK, Delivered — so you can measure your own end-to-end latency instead of trusting a marketing number; it depends on TradingView's webhook dispatch, your broker and the market. One guarantee matters more than raw speed: a command that arrives too late expires on a TTL and is never executed at a stale price.