Fix backtesting bug

balance was never released on cancelled trades
This commit is contained in:
Matthias 2022-06-18 16:27:54 +02:00
parent d77ce468ea
commit 8c46d19071

View File

@ -1055,6 +1055,7 @@ class Backtesting:
# Close trade # Close trade
open_trade_count -= 1 open_trade_count -= 1
open_trades[pair].remove(t) open_trades[pair].remove(t)
LocalTrade.trades_open.remove(t)
self.wallets.update() self.wallets.update()
# 2. Process entries. # 2. Process entries.