From 85c72c51bdd490cfdc6db67f38fa7f45a5e57c23 Mon Sep 17 00:00:00 2001 From: Jokers Date: Sat, 29 Jun 2019 01:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A0=E8=BD=BD=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E6=95=B0=E6=8D=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/app/cta_strategy/backtesting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_strategy/backtesting.py b/vnpy/app/cta_strategy/backtesting.py index fa7a725e..a8887e8c 100644 --- a/vnpy/app/cta_strategy/backtesting.py +++ b/vnpy/app/cta_strategy/backtesting.py @@ -235,14 +235,14 @@ class BacktestingEngine: self.exchange, self.interval, start, - end + min(end, self.end) ) else: data = load_tick_data( self.symbol, self.exchange, start, - end + min(end, self.end) ) self.history_data.extend(data)