Merge pull request #3379 from hroff-1902/fix-3378

Fix #3378
This commit is contained in:
Matthias
2020-05-26 17:16:11 +02:00
committed by GitHub

View File

@@ -327,6 +327,8 @@ class IStrategy(ABC):
latest_date = dataframe['date'].max()
latest = dataframe.loc[dataframe['date'] == latest_date].iloc[-1]
# Explicitly convert to arrow object to ensure the below comparison does not fail
latest_date = arrow.get(latest_date)
# Check if dataframe is out of date
interval_minutes = timeframe_to_minutes(interval)