Fix backtesting bug when order is not replaced
This commit is contained in:
parent
381d64833d
commit
7eacb847b0
@ -966,6 +966,7 @@ class Backtesting:
|
||||
return False
|
||||
else:
|
||||
del trade.orders[trade.orders.index(order)]
|
||||
trade.open_order_id = None
|
||||
self.canceled_entry_orders += 1
|
||||
|
||||
# place new order if result was not None
|
||||
|
Loading…
Reference in New Issue
Block a user