If I open a long position, what is the syntax for cancelling the postion if the price of the following candle(s) falls below 90% of the entry price?
if self.is_long and (current_price < 0.90 * entry_price):
For entry_price im using self.price.
Not sure what "current_price" should be? Or if my logic is even correct?