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,
|
def ignore_expired_candle(self, latest_date: datetime, current_time: datetime,
|
||||||
timeframe_seconds: int, buy: bool):
|
timeframe_seconds: int, buy: bool):
|
||||||
if self.ignore_buying_expired_candle_after \
|
if self.ignore_buying_expired_candle_after \
|
||||||
and self.ignore_buying_expired_candle_after > 0\
|
|
||||||
and buy:
|
and buy:
|
||||||
time_delta = current_time - (latest_date + timedelta(seconds=timeframe_seconds))
|
time_delta = current_time - (latest_date + timedelta(seconds=timeframe_seconds))
|
||||||
return time_delta.total_seconds() > self.ignore_buying_expired_candle_after
|
return time_delta.total_seconds() > self.ignore_buying_expired_candle_after
|
||||||
|
Loading…
Reference in New Issue
Block a user