From 5af894047e289729482ff56509bffe8f6de1e980 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 17 Dec 2024 20:08:40 +0100 Subject: [PATCH] fix: starting balance should include tradable_balance_ratio --- freqtrade/wallets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index 056d82a40..e0fb1f556 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -276,7 +276,9 @@ class Wallets: tot_profit = Trade.get_total_closed_profit() open_stakes = Trade.total_open_trades_stakes() available_balance = self.get_free(self._stake_currency) - return available_balance - tot_profit + open_stakes + return (available_balance - tot_profit + open_stakes) * self._config[ + "tradable_balance_ratio" + ] def get_total_stake_amount(self): """