You do not need a webhook template to send a TradingView alert to MT5. TradingView Bridge accepts a compact command line or a plain-English sentence. Start on demo. Confirm one fill before you automate a strategy.
Plain English (examples)
Type a normal sentence in the alert message. The bridge reads action, symbol, stop, and target:
Buy on EURUSD with 10 pips SL and 40 pips TP
Sell XAUUSD, 0.02 lots, 200 pips stop, 400 pips target
Close long EURUSD
Keep the symbol spelled the way TradingView shows it; map broker names separately (GOLD vs XAUUSD).
Compact commands (same EA)
If you already use webhook-style syntax, these still work. Commands: buy sell closelong closeshort close closeall.
buy,{{ticker}}
buy,{{ticker}},vol_lots=0.02,sl_pips=40,tp_pips=80
buy,{{ticker}},risk_pct=0.5,sl_pips=30,tp_pips=60
closelong,{{ticker}}
closeall,*
Do not combine vol_lots and risk_pct for sizing — pick one.
risk_pct needs sl_pips or sl_price in the same alert.
Price-based stops: buy,EURUSD,vol_lots=0.01,sl_price=1.0800,tp_price=1.0900.
Pine placeholders
{{ticker}} is filled by TradingView when the alert fires. You can also hard-code EURUSD if the chart ticker is messy.
Indicator default alert text can be forwarded as-is if it already contains a command the parser understands — test it once.
Checklist before live
- EA attached, Algo Trading on
- Bridge open, TradingView signed in inside the app
- Symbol map if the MT5 name differs
- One demo fill you can see in the terminal
Strategy alerts (not just indicators): strategy alerts to MT5 EA. Gold/suffix names: XAUUSD / GOLD map.