I want to do a partial exit of my position (50%) on a condition that does NOT imply SL nor TP. How can I do it?
As I don't want to close my position, I don't use strategy.close
but strategy.exit
instead:
if condition
strategy.exit(id="long partial closing", from_entry="long entry", comment="partial close long", qty_percent=50)
Problem is, strategy.exit
requires to specify a TP or SL parameter.
How can I go with only my condition
?