Update ctaBacktesting.py
This commit is contained in:
parent
2c266f1309
commit
c1c9d93c8f
@ -949,7 +949,8 @@ class BacktestingEngine(object):
|
|||||||
|
|
||||||
# 显示结果
|
# 显示结果
|
||||||
resultList = [res.get() for res in l]
|
resultList = [res.get() for res in l]
|
||||||
return resultList.sort(reverse=True, key=lambda result:result[1])
|
resultList.sort(reverse=True, key=lambda result:result[1])
|
||||||
|
return resultList
|
||||||
|
|
||||||
def outputOptimizeResult(self, resultList):
|
def outputOptimizeResult(self, resultList):
|
||||||
self.output('-' * 30)
|
self.output('-' * 30)
|
||||||
@ -1376,4 +1377,4 @@ def optimize(strategyClass, setting, targetName,
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
targetValue = 0
|
targetValue = 0
|
||||||
return (str(setting), targetValue, d)
|
return (str(setting), targetValue, d)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user