[Fix]修复多进程优化的bug
This commit is contained in:
parent
f0c56d42dd
commit
97bf7e0cf5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user