def METHOD_NAME(self, fig: OpenBBFigure, df_ta: pd.DataFrame, inchart_index: int):
    """Adds bollinger bands to plotly figure"""
    bbands_opacity = 0.8 if theme.plt_style == "light" else 1
    fig.add_scatter(
        name=f"{columns_regex(df_ta, 'BBU')[0]}",
        x=df_ta.index,
        y=df_ta[columns_regex(df_ta, "BBU")[0]].values,
        opacity=bbands_opacity,
        mode="lines",
        line=dict(width=1, color=theme.up_color),
        row=1,
        col=1,
        secondary_y=False,
    )
    fig.add_scatter(
        name=f"{columns_regex(df_ta, 'BBL')[0]}",
        x=df_ta.index,
        y=df_ta[columns_regex(df_ta, "BBL")[0]].values,
        opacity=bbands_opacity,
        mode="lines",
        line=dict(width=1, color=theme.down_color),
        row=1,
        col=1,
        secondary_y=False,
    )
    fig.add_scatter(
        name=f"{columns_regex(df_ta, 'BBM')[0]}",
        x=df_ta.index,
        y=df_ta[columns_regex(df_ta, "BBM")[0]].values,
        opacity=1,
        mode="lines",
        line=dict(width=1, color=theme.get_colors()[1], dash="dash"),
        row=1,
        col=1,
        secondary_y=False,
    )
    bbands_text = (
        columns_regex(df_ta, "BBL")[0].replace("BBL_", "BB").replace("_", ",")
    )
    if float(bbands_text.split(",")[1]) % 1 == 0:
        bbands_text = bbands_text.split(".")[0]
    fig.add_annotation(
        xref="paper",
        yref="paper",
        text=f"<b>{bbands_text}</b>",
        x=0,
        xanchor="right",
        xshift=-6,
        yshift=-inchart_index * 18,
        y=0.98,
        font_size=14,
        font_color=theme.get_colors()[1],
        opacity=0.9,
    )
    return fig, inchart_index + 1