Blog

TradingView to MT5: how to turn alerts into real orders

Mis à jour le 13 novembre 2026

Cet article n’est pas encore traduit ; il est affiché en anglais.

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

  1. Symbol names differ by broker. XAUUSD might be XAUUSDm or GOLD. Check Market Watch.
  2. 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.
  3. 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.