From b5357c4d7d2794391bab616bade1bc6ba9c4ac16 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 5 Nov 2017 21:40:40 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8DArrayManager=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E7=BB=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/app/ctaStrategy/ctaTemplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/ctaStrategy/ctaTemplate.py b/vnpy/trader/app/ctaStrategy/ctaTemplate.py index e87b1638..640833c1 100644 --- a/vnpy/trader/app/ctaStrategy/ctaTemplate.py +++ b/vnpy/trader/app/ctaStrategy/ctaTemplate.py @@ -448,7 +448,7 @@ class ArrayManager(object): if not self.inited and self.count >= self.size: self.inited = True - self.openArray[0:self.size-1] = self.closeArray[1:self.size] + self.openArray[0:self.size-1] = self.openArray[1:self.size] self.highArray[0:self.size-1] = self.highArray[1:self.size] self.lowArray[0:self.size-1] = self.lowArray[1:self.size] self.closeArray[0:self.size-1] = self.closeArray[1:self.size]