TradingView automation guide

How to Send TradingView Alerts to MT4.

This guide shows the practical setup: create the TradingView webhook alert, connect the MT4 terminal, write the alert body, map broker symbols, and monitor execution in Synnectra.

Alert body

Use a structured TradingView message.

A clear alert body lets Synnectra validate the command, map the symbol, calculate lot size, and send a final instruction to MetaTrader 4.

LICENSE_ID,BUY,EURUSD,risk=1,sl_pips=20,tp_pips=40,secret=WEBHOOK_SECRET
  • LICENSE_ID identifies the account or workspace receiving the signal.
  • BUY is the action. SELL, CLOSE, and CLOSEALL are also supported.
  • EURUSD is mapped to the broker-specific MT4 symbol before execution.
1

Install and connect the EA

Attach the Synnectra EA to MT4, paste your License ID, and confirm the account appears online.

2

Set webhook URL in TradingView

Use https://synnectra.com/webhook in the alert dialog and paste your alert body in the message field.

3

Test with small size first

Use a demo or low-risk account until the symbol mapping, SL/TP, and notifications are confirmed.

Common MT4 setup checks

Most issues happen before the strategy is wrong.

Check the plumbing first: webhook URL, alert message, EA connection, broker symbol names, algo trading permissions, and risk limits.

vpn_key

Signal authentication

Add a secret token so only authorized TradingView alerts can reach your MT4 account.

sync_alt

Symbol mapping

Map EURUSD, XAUUSD, US100, and other TradingView symbols to your broker's MT4 symbol names.

calculate

Position sizing

Choose fixed lots, risk percentage, or dollar risk so each alert uses predictable size.

Send your first TradingView alert to MT4.

Use a demo account for the first test, confirm execution history, then add risk rules and account routing.