TradingView to MT5: how to turn alerts into real orders
Zaktualizowano 13 listopada 2026
Ten artykuł nie jest jeszcze przetłumaczony; wyświetlamy go po angielsku.
TradingView is great for building strategies, but it cannot place orders at most MetaTrader brokers. The common bridge is a webhook: TradingView sends a small JSON message when an alert fires, a server receives it, and an Expert Advisor (EA) inside MetaTrader 5 places the order.
What the alert message looks like
{
"secret": "your-webhook-secret",
"symbol": "XAUUSD",
"action": "buy",
"volume": 0.05,
"sl_pips": 30,
"tp_pips": 60
}
The secret proves the alert is yours. Symbol, action and volume describe the order. Stop loss and take profit can be in pips, points or an exact price.
Three things that break most setups
- Symbol names differ by broker.
XAUUSDmight beXAUUSDmorGOLD. Check Market Watch. - The EA must be running. If your PC sleeps, alerts arrive while nobody is listening. AlertConnector drops signals older than 60 seconds instead of opening them late.
- Alert frequency. “Once per bar” on a 1-minute chart can fire many times. Use “Once per bar close”.
Testing safely
Start on a demo account, send a few alerts, and read the reason next to each order in your signal history before going live.