Skip to content

Commit 8f4dfbf

Browse files
committed
chore: remove long-deprecated and pointless metric
1 parent 5296a3b commit 8f4dfbf

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

freqtrade/optimize/optimize_reports/optimize_reports.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def _generate_result_line(
8383
"""
8484
Generate one result dict, with "first_column" as key.
8585
"""
86-
profit_sum = result["profit_ratio"].sum()
8786
# (end-capital - starting capital) / starting capital
8887
profit_total = result["profit_abs"].sum() / starting_balance
8988
backtest_days = (max_date - min_date).days or 1
@@ -108,8 +107,6 @@ def _generate_result_line(
108107
"profit_mean_pct": (
109108
round(result["profit_ratio"].mean() * 100.0, 2) if len(result) > 0 else 0.0
110109
),
111-
"profit_sum": profit_sum,
112-
"profit_sum_pct": round(profit_sum * 100.0, 2),
113110
"profit_total_abs": result["profit_abs"].sum(),
114111
"profit_total": profit_total,
115112
"profit_total_pct": round(profit_total * 100.0, 2),

tests/optimize/test_optimize_reports.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ def test_generate_pair_metrics():
452452
assert (
453453
pytest.approx(pair_results[-1]["profit_mean_pct"]) == pair_results[-1]["profit_mean"] * 100
454454
)
455-
assert pytest.approx(pair_results[-1]["profit_sum_pct"]) == pair_results[-1]["profit_sum"] * 100
456455

457456

458457
def test_generate_daily_stats(testdatadir):

0 commit comments

Comments
 (0)