mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Use is_stop_trailing for actual trailing detection
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user