You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keep in mind rsi.length !== arrClose.length so if you add a loop to iterate through arrClose and use the index to access the rsi[i] you will get the wrong value for your RSI, you need to kind of adjust your "i" to access the correct value, something like
constdiff=arrClose.length-rsi.length;//usually is 14 but you need to check on the codefor(leti=0;i<arrClose.length;i++){constrsiValue=rsi[i-diff]//rather than rsi[i];//do whatever you need}
Good luck!
The text was updated successfully, but these errors were encountered:
marcusmota
changed the title
for people getting wrong values
[TIP] for people getting wrong values
Aug 17, 2022
Hi guys I noticed a lot of people are complaining about having wrong values.
my RSI has the correct values, keep in mind the indicator values and the candle close values have different array lengths
let's say you have
keep in mind
rsi.length !== arrClose.length
so if you add a loop to iterate through arrClose and use the index to access the rsi[i] you will get the wrong value for your RSI, you need to kind of adjust your "i" to access the correct value, something likeGood luck!
The text was updated successfully, but these errors were encountered: