mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Removed redundant statement
This commit is contained in:
parent
e328182bd7
commit
71f45021b9
|
@ -490,7 +490,6 @@ 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 self.ignore_buying_expired_candle_after > 0\
|
||||
and buy:
|
||||
time_delta = current_time - (latest_date + timedelta(seconds=timeframe_seconds))
|
||||
return time_delta.total_seconds() > self.ignore_buying_expired_candle_after
|
||||
|
|
Loading…
Reference in New Issue
Block a user