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

Edit an indicator! #311

Open
amiralii opened this issue Jun 21, 2023 · 1 comment
Open

Edit an indicator! #311

amiralii opened this issue Jun 21, 2023 · 1 comment

Comments

@amiralii
Copy link

Hello! I wanted to know how to edit an indicator? For example, I want to rewrite the Aroon indicator with the ability to change the period (it is fixed at 25), please help me if possible (I am a beginner in NodeJS).

@cinar
Copy link
Owner

cinar commented Jun 22, 2023

Hi! Sure, please take a look at the following indicator:

https://github.com/cinar/indicatorts/blob/main/src/indicator/trend/communityChannelIndex.ts

There I have defined a defaultXXXXIndicator function that uses the default period, and the actual indicator accepts the period.

If you change the Aroon indicator the same way, please send over a PR and I'll merge it.

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