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

Issue with NumberFormatter #1

Open
whitfa99 opened this issue Jul 2, 2017 · 0 comments
Open

Issue with NumberFormatter #1

whitfa99 opened this issue Jul 2, 2017 · 0 comments

Comments

@whitfa99
Copy link

whitfa99 commented Jul 2, 2017

Hi there,

Great lib. I'm using only the ParabolicSar indicator so far, but I've had to drop the NumberFormatter, which is used in this class because it doesn't play nicely with numbers less than one. The market price data I'm using is for example between 0.00020000 and 0.00030000, so if the default numberOfDigitsAfterDecimalPoint is 2, then the pSAR always rounds to 0.00.

Is there a way of compensating for this somehow? I've left the NumberFormatter out of the pSAR class altogether and it still seems to run fine.

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

1 participant