We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4dfbf commit c6ed647Copy full SHA for c6ed647
freqtrade/optimize/optimize_reports/optimize_reports.py
@@ -515,14 +515,16 @@ def generate_strategy_stats(
515
516
best_pair = (
517
max(
518
- [pair for pair in pair_results if pair["key"] != "TOTAL"], key=lambda x: x["profit_sum"]
+ [pair for pair in pair_results if pair["key"] != "TOTAL"],
519
+ key=lambda x: x["profit_total_abs"],
520
)
521
if len(pair_results) > 1
522
else None
523
524
worst_pair = (
525
min(
526
527
528
529
530
0 commit comments