From 7675bf8a2ef34a965c1e955e18c460a129f75a4b Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 13 Nov 2018 08:58:50 +0800 Subject: [PATCH] [Mod]Close #1097 --- vnpy/trader/vtUtility.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vnpy/trader/vtUtility.py b/vnpy/trader/vtUtility.py index 1264aa22..94604421 100644 --- a/vnpy/trader/vtUtility.py +++ b/vnpy/trader/vtUtility.py @@ -151,11 +151,11 @@ class ArrayManager(object): if not self.inited and self.count >= self.size: self.inited = True - 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] - self.volumeArray[0:self.size-1] = self.volumeArray[1:self.size] + self.openArray[:-1] = self.openArray[1:] + self.highArray[:-1] = self.highArray[1:] + self.lowArray[:-1] = self.lowArray[1:] + self.closeArray[:-1] = self.closeArray[1:] + self.volumeArray[:-1] = self.volumeArray[1:] self.openArray[-1] = bar.open self.highArray[-1] = bar.high