Fix counting available trade slots in backtesting.
This commit is contained in:
@@ -1123,6 +1123,7 @@ class Backtesting:
|
||||
if self.manage_open_orders(t, current_time, row):
|
||||
# Close trade
|
||||
open_trade_count -= 1
|
||||
open_trade_count_start -= 1
|
||||
open_trades[pair].remove(t)
|
||||
LocalTrade.trades_open.remove(t)
|
||||
self.wallets.update()
|
||||
|
Reference in New Issue
Block a user