From dffff72bd8818949aab5655ec017b0b190ee9d68 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Tue, 11 Aug 2020 15:19:58 +0800 Subject: [PATCH] =?UTF-8?q?[bug=20fix]=20=E5=B9=B3=E4=BB=93=E8=82=A1?= =?UTF-8?q?=E6=8C=87=E6=97=B6=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=BD=93=E5=89=8D=E6=8C=81=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/app/cta_strategy_pro/template.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_strategy_pro/template.py b/vnpy/app/cta_strategy_pro/template.py index c3237f9e..e74e07e0 100644 --- a/vnpy/app/cta_strategy_pro/template.py +++ b/vnpy/app/cta_strategy_pro/template.py @@ -1819,7 +1819,8 @@ class CtaProFutureTemplate(CtaProTemplate): grid.volume -= grid.traded_volume grid.traded_volume = 0 - if grid_pos.long_pos