Skip to content
This repository was archived by the owner on Feb 19, 2022. It is now read-only.
This repository was archived by the owner on Feb 19, 2022. It is now read-only.

Bollinger Bands #17

Open
Open
@akitxu

Description

@akitxu

I propose this change
def bollinger_bands(self, df, n): """ :param df: pandas.DataFrame :param n: :return: pandas.DataFrame """ sma = data.rolling(window = n).mean() std = data.rolling(window = n).std() upper_bb = sma + std * 2 lower_bb = sma - std * 2 return upper_bb, lower_bb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions