From 3f8039f34ec39fcdf673dd384926dbd2b8988552 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 30 Sep 2018 18:39:38 +0800 Subject: [PATCH] [Fix]Close #1114 --- vnpy/trader/app/ctaStrategy/ctaBacktesting.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnpy/trader/app/ctaStrategy/ctaBacktesting.py b/vnpy/trader/app/ctaStrategy/ctaBacktesting.py index fc86d441..c6a2e881 100644 --- a/vnpy/trader/app/ctaStrategy/ctaBacktesting.py +++ b/vnpy/trader/app/ctaStrategy/ctaBacktesting.py @@ -892,6 +892,9 @@ class BacktestingEngine(object): self.tradeCount = 0 self.tradeDict.clear() + # 清空逐日统计相关 + self.dailyResultDict.clear() + #---------------------------------------------------------------------- def runOptimization(self, strategyClass, optimizationSetting): """优化参数"""