I have been trying for hours to implement talib.RSI and failing. I have been trying to hack an algorithm that uses
context.stocks = symbols('IWM','RWM')
...
prices = history(15, '1d', 'price')
rsi = prices.apply(talib.RSI, timeperiod=14).iloc[-1]
but I haven't been able to make that work for me, especially while using data.history method instead of just history (which is deprecated).
Does anyone know of any non-talib solutions to calculate RSI?
Thanks!