Final balance should include forcesold pairs

This commit is contained in:
Matthias 2021-03-14 09:48:40 +01:00
parent 9fb6cfcdad
commit b57c150654

View File

@ -301,6 +301,7 @@ class Backtesting:
trade.close_date = sell_row[DATE_IDX]
trade.sell_reason = SellType.FORCE_SELL.value
trade.close(sell_row[OPEN_IDX], show_msg=False)
LocalTrade.close_bt_trade(trade)
# Deepcopy object to have wallets update correctly
trade1 = deepcopy(trade)
trade1.is_open = True