This commit is contained in:
vn.py 2019-04-26 09:33:25 +08:00
parent e0ea44e286
commit 8d2e83067b

View File

@ -226,6 +226,8 @@ class BacktestingEngine:
# Use the first [days] of history data for initializing strategy
day_count = 0
ix = 0
for ix, data in enumerate(self.history_data):
if self.datetime and data.datetime.day != self.datetime.day:
day_count += 1