From ac69987cefaf2e59f163721b0162a03045643ede Mon Sep 17 00:00:00 2001 From: XueShan Date: Wed, 26 Apr 2017 18:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=9E=E6=B5=8B=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=BB=93=E6=9D=9F=E6=97=A5=E6=9C=9F=E5=90=8E=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9C=80=E5=90=8E=E4=B8=80=E5=A4=A9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/ctaStrategy/ctaBacktesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/ctaStrategy/ctaBacktesting.py b/vn.trader/ctaStrategy/ctaBacktesting.py index 9e8ef52d..d4e509fb 100644 --- a/vn.trader/ctaStrategy/ctaBacktesting.py +++ b/vn.trader/ctaStrategy/ctaBacktesting.py @@ -103,7 +103,7 @@ class BacktestingEngine(object): if endDate: self.dataEndDate= datetime.strptime(endDate, '%Y%m%d') # 若不修改时间则会导致不包含dataEndDate当天数据 - self.dataEndDate.replace(hour=23, minute=59) + self.dataEndDate = self.dataEndDate.replace(hour=23, minute=59) #---------------------------------------------------------------------- def setBacktestingMode(self, mode):