plot-profit: Make "auto-open" HTML result optional
Adding an "--auto-open" argument. This improves tool processing of the results, while still allowing to open the HTML file for easy use.
This commit is contained in:
@@ -602,4 +602,5 @@ def plot_profit(config: Dict[str, Any]) -> None:
|
||||
trades, config.get('timeframe', '5m'),
|
||||
config.get('stake_currency', ''))
|
||||
store_plot_file(fig, filename='freqtrade-profit-plot.html',
|
||||
directory=config['user_data_dir'] / 'plot', auto_open=True)
|
||||
directory=config['user_data_dir'] / 'plot',
|
||||
auto_open=config.get('plot_auto_open', False))
|
||||
|
Reference in New Issue
Block a user