Use is_stop_trailing for actual trailing detection

This commit is contained in:
Matthias
2023-08-14 15:57:47 +02:00
parent e1eeaa24d2
commit 62d83b8dbd

View File

@@ -1247,7 +1247,7 @@ class IStrategy(ABC, HyperStrategyMixin):
exit_type = ExitType.STOP_LOSS
# If initial stoploss is not the same as current one then it is trailing.
if trade.initial_stop_loss != trade.stop_loss:
if trade.is_stop_loss_trailing:
exit_type = ExitType.TRAILING_STOP_LOSS
logger.debug(
f"{trade.pair} - HIT STOP: current price at "