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

Adding variable EMA period to MASS Index #40

Open
joonis opened this issue Jan 17, 2019 · 2 comments
Open

Adding variable EMA period to MASS Index #40

joonis opened this issue Jan 17, 2019 · 2 comments

Comments

@joonis
Copy link

joonis commented Jan 17, 2019

The EMA period of MASS Index is hardcoded to 9.
It should be variable by passing it as an option.

@codeplea
Copy link
Member

What do other charting libraries do?

Do most charting programs allow this as an option?

Most documentation I see says that Mass Index uses a fixed EMA period of 9. e.g. https://en.wikipedia.org/wiki/Mass_index

@joonis
Copy link
Author

joonis commented Jan 17, 2019

If you are working with intervals other than days (eg. hours or even minutes), it is required to adjust the ema period.

There are libs with a variable period:
https://technical-analysis-library-in-python.readthedocs.io/en/latest/ta.html#ta.trend.mass_index

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