From 1d518885a95a79f86278393b01c44bd6c3d521fc Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 1 Jan 2019 16:45:52 +0100 Subject: [PATCH] fix roi-reached when list is unsorted --- 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 a5c10b58c..2d4de2358 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -321,7 +321,7 @@ class IStrategy(ABC): time_diff = (current_time.timestamp() - trade.open_date.timestamp()) / 60 for duration, threshold in self.minimal_roi.items(): if time_diff <= duration: - return False + continue if current_profit > threshold: return True