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

Add: PROC #13

Closed
iaadefila opened this issue Aug 21, 2020 · 1 comment
Closed

Add: PROC #13

iaadefila opened this issue Aug 21, 2020 · 1 comment

Comments

@iaadefila
Copy link

Why this feature is better to be included in stock-pandas? Please describe the scenario

Through a simple calculation, the inclusion of Price Rate of Change (PROC) will further enhance the applicability of the library as a one-stop for stock analysis.

Provide 1-2 code examples that the usage of the new feature:

Are you willing to submit a pull request to implement this rule?

@kaelzhang
Copy link
Owner

kaelzhang commented Aug 24, 2020

ROC (or PROC) is equivalent to

stock['change:(column:close),20']

# 20 means the 20-period ROC
# calculate on close prices

Check https://github.com/kaelzhang/stock-pandas#change for details

For now, you could use this to have a try

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

No branches or pull requests

2 participants