Fix counting available trade slots in backtesting.

This commit is contained in:
Evgeniy Vladimirov
2022-10-16 12:56:59 +03:00
parent b6c096d3bc
commit de9f5660f3
3 changed files with 67 additions and 0 deletions

View File

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