You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside Bollinger Bands Tutorial.py, there's some minor rework required.
item[’30 Day STD’] = item[‘Adj Close’].rolling(window=20).std()
should become
item[’30 Day STD’] = item[‘Adj Close’].rolling(window=20).std(ddof=0)
(this is because the standard deviation is being calculated against a population, not a sample)
Hope that is of assistance.
Cheers,
Richard.
The text was updated successfully, but these errors were encountered:
Inside Bollinger Bands Tutorial.py, there's some minor rework required.
item[’30 Day STD’] = item[‘Adj Close’].rolling(window=20).std()
should become
item[’30 Day STD’] = item[‘Adj Close’].rolling(window=20).std(ddof=0)
(this is because the standard deviation is being calculated against a population, not a sample)
Hope that is of assistance.
Cheers,
Richard.
The text was updated successfully, but these errors were encountered: