TradingView to MT5

Send TradingView webhooks to MT5

Use TradingView for the signal and MetaTrader 5 for execution. TheConnector connects webhook alerts to MT5 accounts with clear routing control.

TradingView webhook bridge for MT5 Daily webhook quota management MT5 account and symbol mapping
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 workflow when TradingView creates the signal and MetaTrader 5 executes the order.

  • TradingView to MT5 webhook
  • MT5 webhook automation
  • MetaTrader 5 alert execution

Routing and control

The signal should identify the account, symbol and expected action before it reaches the terminal.

  • A stable alert message format
  • An allowed MT5 account
  • Daily plan limits enforced in the app

Next setup steps

After this overview, compare pricing, read the documentation or check the MT4 and cTrader workflows.

  • View pricing
  • Compare the MT4 workflow
  • Discover the cTrader workflow

Set up the MT5 Expert Advisor in a few minutes

On MT5, execution goes through a small Expert Advisor: download it from the install guide, attach it to a chart, paste the AccountCode and routing token from your dashboard, and enable Algo Trading. The dashboard shows the account as Connected as soon as the EA is online — send your first test alert to a demo account before any live order.

  • Download the EA from the MT5 install guide
  • Paste the AccountCode and routing token
  • Enable Algo Trading and keep the terminal open

Netting or hedging: know your account mode

Unlike MT4, an MT5 account is either hedging or netting, and that changes what your alerts do. In hedging mode each buy or sell opens its own position, so several signals on the same symbol coexist as separate tickets. In netting mode the account holds one position per symbol: an opposite signal reduces, closes or reverses it. Before automating concurrent signals on one symbol, check the mode with your broker and validate the open/close sequence on a demo account.

  • Hedging: each signal opens its own ticket
  • Netting: opposite signals offset the same position
  • Validate the close/reverse logic on a demo first

Webhook received but not executed: read the statuses

If an alert never becomes an MT5 order, the status history tells you which link broke. Stuck before ACK: the terminal is closed or Algo Trading is disabled. Rejected with a named reason: an unmapped broker symbol (fix it in symbol mapping), a daily quota already consumed, or a market that was closed. Arrived too late: the command expires on a TTL instead of being replayed at a stale price — by design, never a surprise fill.

  • No ACK: terminal closed or Algo Trading off
  • Rejection always names its reason in the history
  • Late commands expire on TTL, never replayed

FAQ

Is MT5 different from MT4 for webhooks?
The webhook principle is the same, but the terminal, symbols and broker behavior can differ.
Can TradingView remain the strategy interface?
Yes. TradingView remains the signal source and MT5 remains the execution platform.
Where are the plans?
The pricing page shows Basic access today and explains when Pro and Elite will open.
Do I need a VPS for the MT5 routing?
The routing itself is hosted by TheConnector, so no server is needed on your side for receiving and dispatching webhooks. What must stay online is the MT5 terminal running the EA, wherever your broker executes — your own machine or the VPS you already use.
Is it compatible with MT5 prop firm accounts?
Yes, as long as the firm allows an Expert Advisor on the account. Read its automation policy first — EA restrictions, consistency rules, news windows — and rehearse the whole alert-to-order chain on the evaluation or demo phase before pointing anything at the funded account. The dedicated prop-firm page details quotas and risk framing.
What execution latency should I expect on MT5?
Measure it rather than trust a number: every command is timestamped at each step (Received, Routing, ACK, Delivered), so the dashboard shows your real end-to-end time, which depends on TradingView's dispatch, your broker and market conditions. And if a command ever arrives after its useful window, it expires on a TTL — it is never executed late at a price you did not expect.