Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
RSI MISSING POSITION ARGUMENT

Im trying to use RSI but I keep getting "missing position argument"

rsi = ta.RSI(timeperiod=14)  
rsi(data)  
rsi_data = rsi(data)  
sym_rsi = rsi_data[sym]  
2 responses

This may help.

# RSI Indicator

import talib  
# -----------------------------------------------  
stock, period, ub, lb = symbol('SPY'), 50, 55, 45  
# -----------------------------------------------  
def initialize(context):  
    schedule_function(RSI_Indicator, date_rules.every_day(), time_rules.market_open(minutes = 65))  

def RSI_Indicator(context, data):  
    prices = data.history(stock, 'price',  period + 1, '1d')  
    rsi = talib.RSI(prices, period)    

    record(rsi = rsi[-1], ub = ub, lb = lb)  

I found the other code in an old notebook maybe that's why it didn't work
thank you for the help