Merge pull request #1881 from hlxstc/dev

修复加载历史数据的bug
This commit is contained in:
vn.py 2019-06-30 17:17:57 +08:00 committed by GitHub
commit d720d84476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,6 +229,8 @@ class BacktestingEngine:
progress = 0
while start < self.end:
end = min(end, self.end) # Make sure end time stays within set range
if self.mode == BacktestingMode.BAR:
data = load_bar_data(
self.symbol,