Fix backtesting bug when order is not replaced

This commit is contained in:
Matthias 2022-06-08 20:21:45 +02:00
parent 381d64833d
commit 7eacb847b0

View File

@ -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