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 to users: keep or cut initialization period values? #176

Closed
DaveSkender opened this issue Nov 12, 2020 · 2 comments
Closed

Question to users: keep or cut initialization period values? #176

DaveSkender opened this issue Nov 12, 2020 · 2 comments
Labels
question Question and/or answer

Comments

@DaveSkender
Copy link
Owner

DaveSkender commented Nov 12, 2020

In a recent issue (#173) a user correctly identified that an indicator had less precision in an initialization phase for an indicator. Some indicators, like ADX, EMA, or others that use smoothing techniques require a runway of about 150-250 periods before the algorithm produces precision to 2 or more decimal places. Early initialization values can be imprecise to small 0.x to 0.0x decimals. This is not unusual for some indicators and precision to 0.00x is not always required for most use cases, especially when the user understands what is happening and can design around it by not using the first 150-250 values. Indicators that require a runway have this mentioned in the documentation.

Question: would you prefer that the library exclude values that don't meet a certain higher precision threshold or keep them? Excluding them would force users to use more history (and I'd probably update the Exception rules to enforce).

Thumbs up = enforce greater precision / exclude initialization values / require more history in Exception rules
Thumbs down = allow 0.x and 0.0x decimal imprecision in early periods and let me decide what to do

Feedback appreciated. Comment below with other ideas.

@DaveSkender DaveSkender added help wanted Extra attention is needed question Question and/or answer labels Nov 12, 2020
@DaveSkender DaveSkender pinned this issue Nov 12, 2020
@DaveSkender
Copy link
Owner Author

DaveSkender commented Nov 12, 2020

As a side note, charting providers will typically calculate indicators on the backend with significantly more history than what they show on the actual chart. They basically truncate the initialization period, so you'd not see these initialization values in those applications. My assumption would be that you, the user, would basically do the same thing, compute indicators with this in mind then only use the post-initialization data. See How much historical quote data do I need?.

@DaveSkender DaveSkender unpinned this issue Nov 17, 2020
@DaveSkender
Copy link
Owner Author

DaveSkender commented Nov 17, 2020

I'm going to opt for allowing small imprecision in the initialization periods for now.

Please see #306 for a continuation on this topic, where you can voice your preferences.

Repository owner locked and limited conversation to collaborators Jan 22, 2021
@DaveSkender DaveSkender removed the help wanted Extra attention is needed label May 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Question and/or answer
Projects
None yet
Development

No branches or pull requests

1 participant