From d9c26fcfb481c0940280b3c55aea45d6e0cee88a Mon Sep 17 00:00:00 2001 From: Priveyes <3041616+Pascal66@users.noreply.github.com> Date: Tue, 18 May 2021 10:19:58 +0200 Subject: [PATCH] Show in that we are using a custom_stoploss --- freqtrade/strategy/interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index e2cde52eb..083602b55 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -47,6 +47,7 @@ class SellType(Enum): FORCE_SELL = "force_sell" EMERGENCY_SELL = "emergency_sell" CUSTOM_SELL = "custom_sell" + CUSTOM_STOP_LOSS = "custom_stop_loss" NONE = "" def __str__(self): @@ -678,6 +679,9 @@ class IStrategy(ABC, HyperStrategyMixin): # If initial stoploss is not the same as current one then it is trailing. if trade.initial_stop_loss != trade.stop_loss: sell_type = SellType.TRAILING_STOP_LOSS + if self.use_custom_stoploss : + sell_type = SellType.CUSTOM_STOP_LOSS + logger.debug( f"{trade.pair} - HIT STOP: current price at {current_rate:.6f}, " f"stoploss is {trade.stop_loss:.6f}, "