What should my alert message look like?
Short answer
One order per alert, in JSON with the symbol, the action and the quantity. The formats of PickMyTrade, TradersPost, PineConnector and Copygram work too.
{
"symbol": "{{ticker}}",
"action": "{{strategy.order.action}}",
"quantity": "{{strategy.order.contracts}}",
"price": "{{close}}"
}
TradingView placeholders
{{ticker}}the symbol the alert fired on.{{strategy.order.action}}buy or sell, in a strategy alert.{{strategy.order.contracts}}the order size.{{close}}the price when the alert fired.
Symbols
Use {{ticker}} or a root such as NQ, MNQ, ES, MES, CL or GC. Thor maps it to the front-month contract on every account. You never type contract months.
Actions
| You send | Thor does |
|---|---|
| buy, long, bull / sell, short, bear | Opens or adds in that direction |
| close, exit, flat, closeall | Closes everything on the symbol |
| closelong / closeshort | Closes that side only |
| buy / sell with "reverse_order_close": true | Closes the position, then opens in that direction |
| reverse | Closes the position, then opens a long |
One order per message. A message holding several orders, such as
[ {...}, {...} ], is refused. Send one alert per order.
The quantity is the leader’s size: each follower still applies its own multiplier.
Was this helpful?
Thanks, that helps us improve this page.