RSI returns `NaN` array
vivekmiyani opened this issue · 6 comments
vivekmiyani commented
Describe the bug
customRsi
/ rsi
returns NaN
array.
To Reproduce
Run:
customRsi(14, Array.from(Array(100).keys()))
Expected behavior
RSI should return expected results.
vivekmiyani commented
Loved this library but stuck at this point 😢
cinar commented
Vivek, thank you for reporting this, let me take a quick look.
cinar commented
It looks like a recently introduced bug. I have a fix. You will be able to check it with the latest on the master branch in few minutes. I can push a release tonight if you are consuming it directly from the npm.
cinar commented
Release v1.0.8 comes with the fix.
vivekmiyani commented
Thanks @cinar for your quick response & fix. Also thanks for the tests! ❤️
cinar commented
You're welcome!