Fix sequence of saving
This commit is contained in:
parent
dacb40a976
commit
075eb0a161
@ -409,11 +409,11 @@ class Backtesting:
|
|||||||
position_stacking=position_stacking,
|
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,
|
stats = generate_backtest_stats(self.config, data, all_results,
|
||||||
min_date=min_date, max_date=max_date)
|
min_date=min_date, max_date=max_date)
|
||||||
show_backtest_results(self.config, stats)
|
|
||||||
if self.config.get('export', False):
|
if self.config.get('export', False):
|
||||||
|
store_backtest_result(self.config['exportfilename'], all_results)
|
||||||
store_backtest_stats(self.config['exportfilename'], stats)
|
store_backtest_stats(self.config['exportfilename'], stats)
|
||||||
|
|
||||||
|
# Show backtest results
|
||||||
|
show_backtest_results(self.config, stats)
|
||||||
|
Loading…
Reference in New Issue
Block a user