diff --git a/docs/assets/plot-dataframe.png b/docs/assets/plot-dataframe.png index eb90a1734..6310b23b4 100644 Binary files a/docs/assets/plot-dataframe.png and b/docs/assets/plot-dataframe.png differ diff --git a/docs/assets/plot-dataframe2.png b/docs/assets/plot-dataframe2.png new file mode 100644 index 000000000..d744b2035 Binary files /dev/null and b/docs/assets/plot-dataframe2.png differ diff --git a/docs/plotting.md b/docs/plotting.md index dade97968..a3d886473 100644 --- a/docs/plotting.md +++ b/docs/plotting.md @@ -122,7 +122,7 @@ freqtrade plot-dataframe --strategy AwesomeStrategy --export-filename user_data/ ### Plot dataframe basics -![plot-dataframe](assets/plot-dataframe.png) +![plot-dataframe2](assets/plot-dataframe2.png) plot-dataframe will require backtesting data, a strategy as well as either a backtesting-results file or a Database file, containing trades corresponding to the strategy. diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index dc4766a84..5301d762d 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -429,8 +429,8 @@ def load_and_plot_trades(config: Dict[str, Any]): pair=pair, data=dataframe, trades=trades_pair, - indicators1=config["indicators1"], - indicators2=config["indicators2"], + indicators1=config.get("indicators1", []), + indicators2=config.get("indicators2", []), plot_config=strategy.plot_config if hasattr(strategy, 'plot_config') else {} )