|
|
|
|
@ -356,7 +356,7 @@ def plot_area(
|
|
|
|
|
:param indicator_b: indicator name as populated in strategy
|
|
|
|
|
:param label: label for the filled area
|
|
|
|
|
:param fill_color: color to be used for the filled area
|
|
|
|
|
:return: fig with added filled_traces plot
|
|
|
|
|
:return: fig with added filled_traces plot
|
|
|
|
|
"""
|
|
|
|
|
if indicator_a in data and indicator_b in data:
|
|
|
|
|
# make lines invisible to get the area plotted, only.
|
|
|
|
|
@ -383,7 +383,7 @@ def add_areas(fig, row: int, data: pd.DataFrame, indicators) -> make_subplots:
|
|
|
|
|
:param data: candlestick DataFrame
|
|
|
|
|
:param indicators: dict with indicators. ie.: plot_config['main_plot'] or
|
|
|
|
|
plot_config['subplots'][subplot_label]
|
|
|
|
|
:return: fig with added filled_traces plot
|
|
|
|
|
:return: fig with added filled_traces plot
|
|
|
|
|
"""
|
|
|
|
|
for indicator, ind_conf in indicators.items():
|
|
|
|
|
if "fill_to" in ind_conf:
|
|
|
|
|
|