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

StockRSI only returning NaN #27

Open
joaosauer opened this issue Oct 30, 2019 · 0 comments
Open

StockRSI only returning NaN #27

joaosauer opened this issue Oct 30, 2019 · 0 comments

Comments

@joaosauer
Copy link

joaosauer commented Oct 30, 2019

Hi!

First of all, amazing library! You made a great job here.
My question is regards stockRSi indicator, that only returns NaN for me.
I was planning to use it for the bitcoin trades, but the coins that I'm using have very small values (this is the values of converted_to_list[1]):
<class 'tuple'>: (0.01411, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.01411, 0.01411, 0.01411, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.0141, 0.01411, 0.01411)

And then, independent of the period that I pass, the values are always NaN.
I'm calling: stochrsi.stochrsi([i * 1000 for i in converted_to_list[1]], len(converted_to_list[1]))
I tried to multiple the values by 1000, to make then more like your examples, but still gettin NaN.

Any idea why?

Many thanks,
Joao

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