if condition fixed
This commit is contained in:
parent
c122eab77b
commit
9c1c962aa7
@ -334,7 +334,7 @@ class IStrategy(ABC):
|
||||
# if trailing_only_offset_is_reached is true,
|
||||
# we update trailing stoploss only if offset is reached.
|
||||
tsl_only_offset = self.config.get('trailing_only_offset_is_reached', False)
|
||||
if tsl_only_offset and current_profit > sl_offset:
|
||||
if not (tsl_only_offset and current_profit < sl_offset):
|
||||
trade.adjust_stop_loss(current_rate, stop_loss_value)
|
||||
|
||||
return SellCheckTuple(sell_flag=False, sell_type=SellType.NONE)
|
||||
|
Loading…
Reference in New Issue
Block a user