From 646c091e023352abe91ce43ec04d938b43f97823 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 11 Feb 2026 07:15:14 +0100 Subject: [PATCH] fix: don't bracked stoploss to 1 it's problematic for short trades - especially if they move past the 100% profit margin - as price starts to trail. --- freqtrade/strategy/strategy_helper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/strategy/strategy_helper.py b/freqtrade/strategy/strategy_helper.py index 1292b65b5..95ff19b6f 100644 --- a/freqtrade/strategy/strategy_helper.py +++ b/freqtrade/strategy/strategy_helper.py @@ -182,5 +182,4 @@ def stoploss_from_absolute( # negative stoploss values indicate the requested stop price is higher/lower # (long/short) than the current price - # shorts can yield stoploss values higher than 1, so limit that as well - return max(min(stoploss, 1.0), 0.0) * leverage + return max(stoploss, 0.0) * leverage