add --export-filename for backtesting

This commit is contained in:
xmatthias
2018-06-03 14:52:03 +02:00
parent bdb25bbcbc
commit e3227a741c
4 changed files with 27 additions and 4 deletions

View File

@@ -157,6 +157,11 @@ class Configuration(object):
config.update({'export': self.args.export})
logger.info('Parameter --export detected: %s ...', self.args.export)
# If --export-filename is used we add it to the configuration
if 'export' in config and 'exportfilename' in self.args and self.args.exportfilename:
config.update({'exportfilename': self.args.exportfilename})
logger.info('Storing backtest results to %s ...', self.args.exportfilename)
return config
def _load_hyperopt_config(self, config: Dict[str, Any]) -> Dict[str, Any]: