File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
freqtrade/optimize/optimize_reports Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff 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
458457def test_generate_daily_stats (testdatadir ):
You can’t perform that action at this time.
0 commit comments