Skip to content

Move my stop or target (update_sl, update_tp)

Short answer

Send an update alert with the new price. Thor replaces the stop or target of the open position, creates it if none is working, and buys or sells nothing.

Updated 1 min read
{
  "symbol": "{{ticker}}",
  "update_sl": true,
  "sl": 27150,
  "price": "{{close}}"
}

Put your new stop price in sl, for example your entry price to move to breakeven. In a Pine strategy you can send "sl": "{{strategy.position_avg_price}}".

  • Use "update_tp": true with tp to move the target the same way. A level you leave out keeps its value.
  • The new stop covers the whole position Thor shows on that symbol.
  • It needs an open position on that symbol in Thor. With none, nothing is placed.
  • Thor refuses a stop the price in the alert has already passed (for a long, a stop at or above that price).

Was this helpful?

Still stuck?

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

Service status