Hello All,
I am reactivate few of my old(2+ years) script based on RSI..I have noticed that I get error global name 'ta' is not defined with the following old code..
Old code
rsi = ta.RSI(timeperiod= 14)
However I continue to get error if I change it to
New Code
rsi = talib.RSI(timeperiod= 14)
Error:
RSI() takes at least 1 positional argument (0 given)
I have been tried with this..
context.spy = sid(8554)
pricenow=data.current(context.spy,'price')
rsi = talib.RSI(pricenow, timeperiod= 14)
Error:
Argument 'real' has incorrect type (expected numpy.ndarray, got float)
Please let me know how do I fix this.
Thanks!