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.
{
"action": "buy",
"symbol": "EURUSD",
"volume": 0.10,
"sl": 1.0820,
"tp": 1.0910
}
पूरी सूची और उपनाम: कमांड सिंटैक्स संदर्भ.
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