Alert message format

How an alert message is built, every command, and the options for size, stop loss and take profit.

The Alert builder writes messages for you, but you can also write them by hand. A message is a list of values separated by commas:

LICENSE,command,SYMBOL,option=value,option=value

Example: 4F9A2C7B1D0E,buy,EURUSD,vol_lots=0.10,sl_pips=20,tp_pips=40

Commands

Trade size

Stop loss and take profit

Use pips (sl_pips=20), an exact price (sl_price=1.0850) or a percent (sl_pct=0.5). The same for tp_. They sit at the broker, so they work even when TradingView is closed.

Extras

Still stuck?Ask the help bot, or send a request and our team replies.