RSI returns `NaN` array
vivekmiyani opened this issue · comments
Vivek 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.
Vivek commented
Loved this library but stuck at this point 😢
Onur Cinar commented
Vivek, thank you for reporting this, let me take a quick look.
Onur 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.
Onur Cinar commented
Release v1.0.8 comes with the fix.
Onur Cinar commented
You're welcome!