Export backtesting results by default

closes #4977
This commit is contained in:
Matthias
2021-06-14 19:57:24 +02:00
parent 9c789856bd
commit cf7394d01c
7 changed files with 28 additions and 20 deletions

View File

@@ -520,7 +520,7 @@ class Backtesting:
stats = generate_backtest_stats(data, self.all_results,
min_date=min_date, max_date=max_date)
if self.config.get('export', False):
if self.config.get('export', 'none') == 'trades':
store_backtest_stats(self.config['exportfilename'], stats)
# Show backtest results