MetaTrader — Connect TradingView to MT4 / MT5
Use the TradeAdapter Expert Advisor (EA) to send TradingView alerts to any broker that supports MetaTrader — Forex, Indices, CFDs, Crypto.
What it is #
TradeAdapter’s MetaTrader bridge runs inside your MT4 or MT5 terminal. When an alert fires from TradingView, TradeAdapter receives it and forwards the order to the EA; the EA then places the trade with your broker. No direct API from the broker is required — if your broker supports MT4 or MT5, you can connect.
When to use it #
Use the MT4/MT5 setup when your broker is not in the Direct API list. The EA works with most MetaTrader brokers worldwide; symbol mapping is available when TradingView and your broker use different symbol names.
End-to-end — From installing the EA to seeing your trades #
This guide covers the full path: install the EA in MetaTrader, set up the alert in TradingView, and verify that trades reach your broker.
-
2 — Set up the alert in TradingView
Add your strategy or indicator to the chart, create the alert with the right condition (e.g. “Order fills only” for strategies), put your TradeAdapter Webhook URL (or email) in Notifications, and paste the JSON message in Message (use the Message Generator). TradingView alerts for MetaTrader
-
3 — Check symbols (if needed)
If the symbol in TradingView doesn’t match your broker’s symbol in MT (e.g. EURUSD vs EURUSD.a), see Symbol alignment and the TradingView_Symbol input in EA Settings.
-
4 — First trade and verification
Trigger the alert (or wait for the strategy to trigger it). Check in MyTrades (MetaTrader) that the signal was received and executed, and in your MT terminal that the position appears in your account.
Requirements #
-
MetaTrader installed
MT4 or MT5 on Windows (or Mac with the paths from the setup guides).
-
TradeAdapter EA installed
EA in the Experts folder and attached to a chart.
-
Algo Trading enabled
Allow automated trading and WebRequests for
https://mt.tradeadapter.comin MT options. -
API key in the EA
Your TradeAdapter API key from the Profile page.
Videos — MetaTrader + TradingView #
Playlist with setup walkthroughs for MT4 and MT5 (different brokers; steps are the same).
MetaTrader setup guides #
Follow the guide for your platform, then configure your TradingView alert.
Download EA, copy to MQL4/Experts, allow WebRequests, attach to chart, enter API key. See EA Settings for all inputs.
Download EA, copy to MQL5/Experts, allow WebRequests, attach to chart, enter API key. See EA Settings for all inputs.
Message format, Webhook URL, Strategy vs Indicator. Use the Message Generator for Strategy or Indicator.
When TradingView symbol name doesn’t match your broker’s symbol in MT (e.g. EURUSD vs EURUSD.a).
All EA inputs and order actions: TradingView_Symbol, Order_Size, Flip on Close, CloseAll, ExitAll, and more.