From d0ccfa1925006bf8be1365b69cb5a5efb0ff79f1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 5 Jan 2020 19:50:21 +0100 Subject: [PATCH] Explicitly given indicators should override plot_config --- freqtrade/plot/plotting.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freqtrade/plot/plotting.py b/freqtrade/plot/plotting.py index 1660371a1..dc4766a84 100644 --- a/freqtrade/plot/plotting.py +++ b/freqtrade/plot/plotting.py @@ -176,6 +176,12 @@ def create_plotconfig(indicators1: List[str], indicators2: List[str], :return: plot_config - eventually with indicators 1 and 2 """ + if plot_config: + if indicators1: + plot_config['main_plot'] = {ind: {} for ind in indicators1} + if indicators2: + plot_config['subplots'] = {'Other': {ind: {} for ind in indicators2}} + if not plot_config: # If no indicators and no plot-config given, use defaults. if not indicators1: