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

Bollinger Bands #17

Open
akitxu opened this issue Nov 10, 2021 · 0 comments
Open

Bollinger Bands #17

akitxu opened this issue Nov 10, 2021 · 0 comments

Comments

@akitxu
Copy link

akitxu commented Nov 10, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant