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

@@ -61,7 +61,11 @@ def init_plotscript(config, markets: List, startup_candles: int = 0):
startup_candles, min_date)
no_trades = False
filename = config.get('exportfilename')
for arg_name in ['exportfilename', 'backtestfilename']:
filename = config.get(arg_name)
if filename is not None:
break
if config.get('no_trades', False):
no_trades = True
elif config['trade_source'] == 'file':