-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
ADX Method Divide by Zero Error (ta 0.3.7) #36
Comments
it's because this line is leaving a 0 at the end
I haven't looked into it more, but the resulting |
Is there a fix in plan for this? Or is there a workaround that we can use until a fix is in place? |
Bump for this as I'm running into the same problem using the latest master. |
@bukosabino I have fixed the error with this issue. @DavidAlmasan solution
The issue is an off by one error by which the trs variable was not having it's final value in the list set (thus remaining 0) and this resulted in a divide by 0 error when it encountered
I will be submitting a PR for this. |
Hi @codeninja , Thank you for your effort. I accepted your PR, but, when I test the results using your implementation, the tests didn't pass :( Could you take a look again? Best, |
I've seen an issue the
trs[i]
value can equal zero giving this error:I've checked the pandas series sent to
adx
, and there are nonp.nan
, orNone
values in them.It needs to be handled in some way. The code doesn't crash, it just gives a warning.
ta
version 0.3.7The text was updated successfully, but these errors were encountered: