This commit is contained in:
vn.py 2018-02-16 22:17:58 +08:00
parent 5ebe4a67c7
commit 002112c533
3 changed files with 98 additions and 122 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -872,7 +872,8 @@ class BacktestingEngine(object):
self.output('setting: %s' %str(setting))
self.initStrategy(strategyClass, setting)
self.runBacktesting()
d = self.calculateBacktestingResult()
df = self.calculateDailyResult()
df, d = self.calculateDailyStatistics(df)
try:
targetValue = d[targetName]
except KeyError: