From af1de46cd4dd968482dee15a5deebd57005d8691 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 24 Apr 2026 18:24:31 +0200 Subject: [PATCH] chore: fix minor typos --- freqtrade/data/metrics.py | 2 +- freqtrade/persistence/trade_model.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freqtrade/data/metrics.py b/freqtrade/data/metrics.py index 4d66104ea..0d7c65bab 100644 --- a/freqtrade/data/metrics.py +++ b/freqtrade/data/metrics.py @@ -140,7 +140,7 @@ def _calc_drawdown_series( max_drawdown_df["drawdown_relative"] = (max_balance - cumulative_balance) / max_balance else: # NOTE: This is not completely accurate, - # but might good enough if starting_balance is not available + # but will be good enough if starting_balance is not available max_drawdown_df["drawdown_relative"] = ( max_drawdown_df["high_value"] - max_drawdown_df["cumulative"] ) / max_drawdown_df["high_value"] diff --git a/freqtrade/persistence/trade_model.py b/freqtrade/persistence/trade_model.py index e6107eac6..7e8dd2e3c 100644 --- a/freqtrade/persistence/trade_model.py +++ b/freqtrade/persistence/trade_model.py @@ -858,9 +858,9 @@ class LocalTrade: higher_stop = stop_loss_norm > self.stop_loss lower_stop = stop_loss_norm < self.stop_loss - # stop losses only walk up, never down!, - # ? But adding more to a leveraged trade would create a lower liquidation price, - # ? decreasing the minimum stoploss + # stop losses only walk up, never down! + # but adding more to a leveraged trade would create a lower liquidation price, + # decreasing the minimum stoploss if ( allow_refresh or (higher_stop and not self.is_short)