修复回测设置结束日期后没有最后一天数据的bug
This commit is contained in:
parent
e3598be7e0
commit
ac69987cef
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user