I want to set a stoploss at previous low of long entry. which command I need to use ?
(https://i.stack.imgur.com/c9imo.png)
currently I use
if ta.change(strategy.position_size) == 0
strategy.exit(id="Close Long", stop=low)
if ta.change(strategy.position_size) == 0
strategy.exit(id="Close Short", stop=high)