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

[Question] What determines the period? #419

Open
valjusha opened this issue Feb 11, 2024 · 1 comment
Open

[Question] What determines the period? #419

valjusha opened this issue Feb 11, 2024 · 1 comment

Comments

@valjusha
Copy link

valjusha commented Feb 11, 2024

Hi all. Thank you very much for this great solution!
I have a question: How to use period arguments correctly?

I'm reading the documentation and many indicators require a period. I can’t understand what it should be like ((

For example, to calculate ATR or VWAP, what parameter should the period be? I understand they should depend on the duration of the candles, but how exactly?

@cinar
Copy link
Owner

cinar commented Mar 3, 2024

Hi,

The indicators use periods to look back at price history. Like zooming in or out on a picture, the period affects how sensitive the indicator is to price movements.

Shorter periods react faster to price changes but can be jumpy due to random noise. Longer periods smooth out fluctuations but take longer to signal trends.

The best period to use really changes based on what you want to achieve.

Per a quick web search, for ATR, https://www.investopedia.com/terms/a/atr.asp suggests 14 for example. Other sources may have different suggestions. I would suggest trying a few to see which period works the best for your analysis and data to be sure.

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