From b57c150654235086164f1199584ce990aa38f854 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 14 Mar 2021 09:48:40 +0100 Subject: [PATCH] Final balance should include forcesold pairs --- freqtrade/optimize/backtesting.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index f2cf0d0dc..0b884dae5 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -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