Fix flake8 complaints

This commit is contained in:
froggleston 2022-04-16 16:49:20 +01:00
parent 7210a11730
commit b738c4e695

View File

@ -1077,7 +1077,7 @@ class Backtesting:
}) })
self.all_results[self.strategy.get_strategy_name()] = results self.all_results[self.strategy.get_strategy_name()] = results
if self.backtest_signal_candle_export_enable and if self.backtest_signal_candle_export_enable and \
self.dataprovider.runmode == RunMode.BACKTEST: self.dataprovider.runmode == RunMode.BACKTEST:
signal_candles_only = {} signal_candles_only = {}
for pair in preprocessed_tmp.keys(): for pair in preprocessed_tmp.keys():
@ -1160,7 +1160,7 @@ class Backtesting:
if self.config.get('export', 'none') == 'trades': if self.config.get('export', 'none') == 'trades':
store_backtest_stats(self.config['exportfilename'], self.results) store_backtest_stats(self.config['exportfilename'], self.results)
if self.backtest_signal_candle_export_enable and if self.backtest_signal_candle_export_enable and \
self.dataprovider.runmode == RunMode.BACKTEST: self.dataprovider.runmode == RunMode.BACKTEST:
store_backtest_signal_candles(self.config['exportfilename'], self.processed_dfs) store_backtest_signal_candles(self.config['exportfilename'], self.processed_dfs)