Stop loss and take profit from a TradingView alert
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.
Send them with the entry
- Add the levels to your entry alert, as prices, the way they sit on the chart:
slfor the stop andtpfor the target. - Thor places them on every follower, sized to the entry.
- 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
| Follower | Stop 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 |
| NinjaTrader | None: 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?
Thanks, that helps us improve this page.