Plotting: add alias --backtest-filename for --export-filename

makes it easier to discover how to use this argument
This commit is contained in:
Joe Schr
2022-02-01 19:31:38 +01:00
parent a733a74dd9
commit a3e045f69d
5 changed files with 28 additions and 9 deletions

View File

@@ -430,6 +430,15 @@ class Configuration:
self._args_to_config(config, argname='dataformat_trades',
logstring='Using "{}" to store trades data.')
if self.args.get('backtestfilename'):
self._args_to_config(config, argname='backtestfilename',
logstring='Fetching backtest results from {} ...')
config['backtestfilename'] = Path(config['backtestfilename'])
else:
config['backtestfilename'] = (config['user_data_dir']
/ 'backtest_results')
def _process_data_options(self, config: Dict[str, Any]) -> None:
self._args_to_config(config, argname='new_pairs_days',