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
Hi Mark, just start reading this source codes, and got a little confused about the today variable in func Rsi, it seems that at L2840 the today will be 3 at least because there's an auto-increament operation at L2823 and min value of inTimePeriod is 2, so the else part at L2850 would never be reached. Is that right?
The text was updated successfully, but these errors were encountered:
Hi Dominic,
This code is a straight up port from the Java version of TA-Lib. So any peculiarities like that exist in the original version as well. Since I test the output of this version against the original TA-Lib, I'm inclined to leave it alone for now.
I see. I have read the java version and finally figured it out. The reason that your code got the correct result is the last for loop coverd the caculations, and those dead codes above have no side effects.
go-talib/talib.go
Lines 2819 to 2840 in cd53a92
Hi Mark, just start reading this source codes, and got a little confused about the
today
variable in funcRsi
, it seems that at L2840 thetoday
will be 3 at least because there's an auto-increament operation at L2823 and min value ofinTimePeriod
is 2, so theelse
part at L2850 would never be reached. Is that right?The text was updated successfully, but these errors were encountered: