修复回测设置结束日期后没有最后一天数据的bug

This commit is contained in:
XueShan 2017-04-26 18:00:25 +08:00
parent e3598be7e0
commit ac69987cef

View File

@ -103,7 +103,7 @@ class BacktestingEngine(object):
if endDate:
self.dataEndDate= datetime.strptime(endDate, '%Y%m%d')
# 若不修改时间则会导致不包含dataEndDate当天数据
self.dataEndDate.replace(hour=23, minute=59)
self.dataEndDate = self.dataEndDate.replace(hour=23, minute=59)
#----------------------------------------------------------------------
def setBacktestingMode(self, mode):