Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update stochastic.py #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rafrodriguez
Copy link

Fixed formula of %K in the docstring.

Fixed formula of %K in the docstring.
Copy link

@g8a9 g8a9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think it is a correct fix.

Copy link

@nf78 nf78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is correct. The formula needs the added parenthesis, to calculate the subtraction before the division, otherwise division has priority over subtraction.

Also checked Formula is correct, as documented:
https://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:stochastic_oscillator_fast_slow_and_full

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

Successfully merging this pull request may close these issues.

None yet

3 participants