Skip to content

Stop loss and take profit from a TradingView alert

Short answer

Send them as prices on the entry alert. Futures followers get a real stop and limit order, CFD followers carry the levels on the position, and the pair ends together when one of them fills.

Updated 1 min read

Send them with the entry

  1. Add the levels to your entry alert, as prices, the way they sit on the chart: sl for the stop and tp for the target.
  2. Thor places them on every follower, sized to the entry.
  3. When one of them fills, Thor cancels the other one on that account.
{
  "symbol": "{{ticker}}",
  "action": "buy",
  "quantity": 1,
  "sl": 27100,
  "tp": 27300,
  "price": "{{close}}"
}

Thor also reads sl_price, stop_loss, stopLoss, tp_price, take_profit and takeProfit, and TradersPost’s object form. Distances and percentages are ignored: send the price itself.

What each account receives

FollowerStop and target
Futures (Rithmic, Tradovate, ProjectX, dxFeed, TFeed)A real stop order and a real limit order
CFD (MetaTrader 4 and 5, cTrader, DXTrade, TradeLocker)The levels, set on the position itself
NinjaTraderNone: NinjaTrader followers receive fills only

Adding to a position

The stop and target keep the size of your first entry. An alert that adds contracts does not resize them, so once the first stop or target has filled, the added contracts have none. Move or recreate the stop with an update alert.

Closing the trade

Always send an exit alert. It closes whatever is still open and cancels whatever is still working.

Was this helpful?

Still stuck?

Ask Thor Support in the chat, or open a ticket in #open-a-ticket on our Discord.

Service status