[Fix]修复多进程优化的bug

This commit is contained in:
vn.py 2018-10-06 08:58:35 +08:00
parent f0c56d42dd
commit 97bf7e0cf5

View File

@ -1387,8 +1387,8 @@ def optimize(strategyClass, setting, targetName,
engine.initStrategy(strategyClass, setting)
engine.runBacktesting()
self.calculateDailyResult()
d, result = self.calculateDailyStatistics()
engine.calculateDailyResult()
d, result = engine.calculateDailyStatistics()
try:
targetValue = result[targetName]
except KeyError: