Merge pull request #10198 from stash86/bt-metrics

remove duplicate stat from BT table
This commit is contained in:
Matthias 2024-05-11 08:32:25 +02:00 committed by GitHub
commit 42705374d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,6 @@ def text_table_add_metrics(strat_results: Dict) -> str:
('Expectancy (Ratio)', (
f"{strat_results['expectancy']:.2f} ({strat_results['expectancy_ratio']:.2f})" if
'expectancy_ratio' in strat_results else 'N/A')),
('Trades per day', strat_results['trades_per_day']),
('Avg. daily profit %',
f"{(strat_results['profit_total'] / strat_results['backtest_days']):.2%}"),
('Avg. stake amount', fmt_coin(strat_results['avg_stake_amount'],