[Mod] clear previously loaded history data

This commit is contained in:
vn.py 2019-06-10 13:29:03 +08:00
parent 4fadcd9016
commit 8f5f187fcd

View File

@ -214,6 +214,8 @@ class BacktestingEngine:
if not self.end:
self.end = datetime.now()
self.history_data.clear() # Clear previously loaded history data
# Load 30 days of data each time and allow for progress update
progress_delta = timedelta(days=30)
total_delta = self.end - self.start