diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index e5173a29e..4d29337a7 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -440,8 +440,8 @@ def create_scatter( def generate_candlestick_graph( pair: str, data: pd.DataFrame, trades: Optional[pd.DataFrame] = None, *, - indicators1: List[str] = [], indicators2: List[str] = [], - plot_config: Dict[str, Dict] = {}, + indicators1: Optional[List[str]] = None, indicators2: Optional[List[str]] = None, + plot_config: Optional[Dict[str, Dict]] = None, ) -> go.Figure: """ Generate the graph from the data generated by Backtesting or from DB @@ -454,7 +454,11 @@ def generate_candlestick_graph( :param plot_config: Dict of Dicts containing advanced plot configuration :return: Plotly figure """ - plot_config = create_plotconfig(indicators1, indicators2, plot_config) + plot_config = create_plotconfig( + indicators1 or [], + indicators2 or [], + plot_config or {}, + ) rows = 2 + len(plot_config['subplots']) row_widths = [1 for _ in plot_config['subplots']] # Define the graph