Automate
Your alert message
This is the little message you paste into a TradingView alert. Only two parts are required: what to trade, and which way. The rest is just for your own notes.
TemplateCopy this in
Paste this into the TradingView alert message box. The placeholders fill in automatically when it fires:
json
{
"symbol": "{{ticker}}",
"side": "{{strategy.order.action}}",
"strategy": "breakout-v2",
"price": {{close}}
}For a simple one-way alert (not from a strategy), just set the side yourself:
json
{
"symbol": "XAUUSD",
"side": "BUY",
"strategy": "manual-gold",
"price": {{close}}
}PartsWhat each part means
| Field | Type | Notes | |
|---|---|---|---|
| symbol | text | required | The symbol to trade, named exactly as your broker shows it in MT5. e.g. EURUSD, XAUUSD, US500.cash. |
| side | text | required | Which way to trade. Use BUY or SELL (capitals don't matter). |
| strategy | text | optional | Any label you like, just for your own reference. It shows up in your Alerts log and doesn't affect the trade. |
| price | number | optional | The alert price, kept for your records. Bullion places market orders, so this is logged but not used to trade. |
SymbolsGetting the symbol right
Use the name your brokeruses in MetaTrader 5, not the name TradingView shows. They’re often different:
| TradingView shows | Your broker may use |
|---|---|
| EURUSD | EURUSD |
| GOLD | XAUUSD |
| SPX500USD | US500.cash |
| BTCUSD | BTCUSD or BTC/USD |
To check the exact name, open MetaTrader 5 and look under View → Symbols. If the name doesn’t match, your broker will reject the order. You’ll see exactly why on your Alerts page.
⚠
A BUY then a SELL both go through. Bullion only ignores the exact same alert sent twice. A BUY followed by a SELL on the same symbol are two different signals, so both are traded. That's usually what you want.
Status guide →