Fix sequence of saving

This commit is contained in:
Matthias 2020-06-26 19:20:51 +02:00
parent dacb40a976
commit 075eb0a161

View File

@ -409,11 +409,11 @@ class Backtesting:
position_stacking=position_stacking,
)
if self.config.get('export', False):
store_backtest_result(self.config['exportfilename'], all_results)
# Show backtest results
stats = generate_backtest_stats(self.config, data, all_results,
min_date=min_date, max_date=max_date)
show_backtest_results(self.config, stats)
if self.config.get('export', False):
store_backtest_result(self.config['exportfilename'], all_results)
store_backtest_stats(self.config['exportfilename'], stats)
# Show backtest results
show_backtest_results(self.config, stats)