From b4a5f66f29a32976da06fd347de6cfd16eefbd16 Mon Sep 17 00:00:00 2001 From: mrpabloyeah Date: Sun, 20 Apr 2025 13:39:35 +0200 Subject: [PATCH] Return the trade duration along with the profit threshold returned by custom_roi --- freqtrade/strategy/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 94a28944d..16c2e311c 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -1686,7 +1686,7 @@ class IStrategy(ABC, HyperStrategyMixin): # The lowest available value is used to trigger an exit. if custom_roi is not None and (min_roi is None or custom_roi < min_roi): - return 0, custom_roi + return trade_dur, custom_roi else: return roi_entry, min_roi