Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bollinger Band code needs some minor rework #3

Open
@RichardDale

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /