From e4a3efc7d4b0ce94a02407315e60e689a20af900 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 27 Nov 2022 15:44:14 +0100 Subject: [PATCH] Don't use strategy.stoploss too often discovered in #7760 --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 34d18b3d8..f9cb28c28 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -1151,7 +1151,7 @@ class FreqtradeBot(LoggingMixin): stoploss = ( self.edge.stoploss(pair=trade.pair) if self.edge else - self.strategy.stoploss / trade.leverage + trade.stop_loss_pct / trade.leverage ) if trade.is_short: stop_price = trade.open_rate * (1 - stoploss)