From 67306d943a0e7b0a86d799cc6022ab117358369b Mon Sep 17 00:00:00 2001 From: Erwin Hoeckx Date: Tue, 5 Jan 2021 07:33:34 +0100 Subject: [PATCH] Update interface.py Simplified return value, thereby including the situation where the time simply hasn't expired yet --- freqtrade/strategy/interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 4d6e327f3..41fa26ac4 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -497,8 +497,8 @@ class IStrategy(ABC): ignore_buying_expired_candle_after of %s seconds''', self.ignore_buying_expired_candle_after) return True - else: - return False + + return False def should_sell(self, trade: Trade, rate: float, date: datetime, buy: bool, sell: bool, low: float = None, high: float = None,