From 787e94924dd7459d2cbaa92e2a389a18fec3b767 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 23 Jul 2023 07:20:59 +0200 Subject: [PATCH] Update default expectancy ratio to 100 --- freqtrade/data/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/data/metrics.py b/freqtrade/data/metrics.py index d4746c168..c22dcccef 100644 --- a/freqtrade/data/metrics.py +++ b/freqtrade/data/metrics.py @@ -202,7 +202,7 @@ def calculate_expectancy(trades: pd.DataFrame) -> Tuple[float, float]: """ expectancy = 0 - expectancy_ratio = float('inf') + expectancy_ratio = 100 if len(trades) > 0: winning_trades = trades.loc[trades['profit_abs'] > 0]