From d64f9030c19f67c55a28cb55a946b149cd15a4c6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 7 Jan 2022 08:04:01 +0100 Subject: [PATCH] Remove now unused codesegment --- freqtrade/data/btanalysis.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/freqtrade/data/btanalysis.py b/freqtrade/data/btanalysis.py index 2b4a63441..10dba8683 100644 --- a/freqtrade/data/btanalysis.py +++ b/freqtrade/data/btanalysis.py @@ -162,8 +162,6 @@ def load_backtest_data(filename: Union[Path, str], strategy: Optional[str] = Non raise OperationalException( "Backtest-results with only trades data are no longer supported.") if not df.empty: - if 'profit_ratio' not in df.columns: - df['profit_ratio'] = df['profit_percent'] df = df.sort_values("open_date").reset_index(drop=True) return df