Fix backtesting bug
balance was never released on cancelled trades
This commit is contained in:
parent
d77ce468ea
commit
8c46d19071
@ -1055,6 +1055,7 @@ class Backtesting:
|
||||
# Close trade
|
||||
open_trade_count -= 1
|
||||
open_trades[pair].remove(t)
|
||||
LocalTrade.trades_open.remove(t)
|
||||
self.wallets.update()
|
||||
|
||||
# 2. Process entries.
|
||||
|
Loading…
Reference in New Issue
Block a user