From 1f6a71fdd96609a78ee9e75e232581e1d85f3776 Mon Sep 17 00:00:00 2001 From: hoeckxer Date: Tue, 12 Jan 2021 08:24:11 +0100 Subject: [PATCH] Reformat code on new version --- freqtrade/strategy/interface.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/strategy/interface.py b/freqtrade/strategy/interface.py index 40debe78f..2f1326f48 100644 --- a/freqtrade/strategy/interface.py +++ b/freqtrade/strategy/interface.py @@ -489,8 +489,7 @@ class IStrategy(ABC): def ignore_expired_candle(self, latest_date: datetime, current_time: datetime, timeframe_seconds: int, buy: bool): - if self.ignore_buying_expired_candle_after \ - and buy: + if self.ignore_buying_expired_candle_after and buy: time_delta = current_time - (latest_date + timedelta(seconds=timeframe_seconds)) return time_delta.total_seconds() > self.ignore_buying_expired_candle_after else: