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)