Added timerange above multiple strategy backtest result summary table

This commit is contained in:
barbarius
2021-06-28 10:20:34 +02:00
parent f3684e0051
commit c99ae3b419
2 changed files with 5 additions and 0 deletions

View File

@@ -660,9 +660,13 @@ def show_backtest_results(config: Dict, backtest_stats: Dict):
show_backtest_result(strategy, results, stake_currency)
if len(backtest_stats['strategy']) > 1:
backtest_timerange = f"{next(iter(backtest_stats['strategy'].items()))[1]['backtest_start']} -> " \
f"{next(iter(backtest_stats['strategy'].items()))[1]['backtest_end']}"
# Print Strategy summary table
table = text_table_strategy(backtest_stats['strategy_comparison'], stake_currency)
print(backtest_timerange)
print(' STRATEGY SUMMARY '.center(len(table.splitlines()[0]), '='))
print(table)
print('=' * len(table.splitlines()[0]))