From ad6368d0a53bb77af1cfb794137d58bb44054afb Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Mon, 1 Jul 2019 10:50:18 +0800 Subject: [PATCH] Update king_keltner_strategy.py --- vnpy/app/cta_strategy/strategies/king_keltner_strategy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/app/cta_strategy/strategies/king_keltner_strategy.py b/vnpy/app/cta_strategy/strategies/king_keltner_strategy.py index 961e34e4..9f918c1e 100644 --- a/vnpy/app/cta_strategy/strategies/king_keltner_strategy.py +++ b/vnpy/app/cta_strategy/strategies/king_keltner_strategy.py @@ -96,7 +96,7 @@ class KingKeltnerStrategy(CtaTemplate): vt_orderid = self.sell(self.intra_trade_high * (1 - self.trailing_percent / 100), abs(self.pos), True) - self.vt_orderids.append(vt_orderid) + self.vt_orderids.extend(vt_orderid) elif self.pos < 0: self.intra_trade_high = bar.high_price @@ -104,7 +104,7 @@ class KingKeltnerStrategy(CtaTemplate): vt_orderid = self.cover(self.intra_trade_low * (1 + self.trailing_percent / 100), abs(self.pos), True) - self.vt_orderids.append(vt_orderid) + self.vt_orderids.extend(vt_orderid) self.put_event()