Added timerange above multiple strategy backtest result summary table

This commit is contained in:
barbarius 2021-06-28 10:54:54 +02:00
parent c99ae3b419
commit 2e5b719de8

View File

@ -660,8 +660,9 @@ 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']}"
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