From 7e30f9fabc71b422a55b486df2845fbafeaf0976 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 7 Nov 2019 15:45:27 +0800 Subject: [PATCH] [Fix] close #2171 --- vnpy/app/cta_strategy/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/backtesting.py b/vnpy/app/cta_strategy/backtesting.py index 6b3f21d5..3fbea733 100644 --- a/vnpy/app/cta_strategy/backtesting.py +++ b/vnpy/app/cta_strategy/backtesting.py @@ -879,7 +879,7 @@ class BacktestingEngine: self.trades[trade.vt_tradeid] = trade # Update stop order. - stop_order.vt_orderid = order.vt_orderid + stop_order.vt_orderids.append(order.vt_orderid) stop_order.status = StopOrderStatus.TRIGGERED self.active_stop_orders.pop(stop_order.stop_orderid)