[Fix] close #2171
This commit is contained in:
parent
3ed0131b44
commit
7e30f9fabc
@ -879,7 +879,7 @@ class BacktestingEngine:
|
|||||||
self.trades[trade.vt_tradeid] = trade
|
self.trades[trade.vt_tradeid] = trade
|
||||||
|
|
||||||
# Update stop order.
|
# Update stop order.
|
||||||
stop_order.vt_orderid = order.vt_orderid
|
stop_order.vt_orderids.append(order.vt_orderid)
|
||||||
stop_order.status = StopOrderStatus.TRIGGERED
|
stop_order.status = StopOrderStatus.TRIGGERED
|
||||||
|
|
||||||
self.active_stop_orders.pop(stop_order.stop_orderid)
|
self.active_stop_orders.pop(stop_order.stop_orderid)
|
||||||
|
Loading…
Reference in New Issue
Block a user