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
Im trying to use bta-lib to calculate rsi indicator although it was fine with the sma function but through an error on rsi function
'''
df=pd.read_csv('prices.csv')
sma=btalib.sma(df,period=9)#works fine
rsi=btalib.rsi(df,period=14)#through an error
'''
error= ValueError: cannot set using a slice indexer with a different length than the value... my df len is enough.
The text was updated successfully, but these errors were encountered:
Im trying to use bta-lib to calculate rsi indicator although it was fine with the sma function but through an error on rsi function
'''
df=pd.read_csv('prices.csv')
sma=btalib.sma(df,period=9)#works fine
rsi=btalib.rsi(df,period=14)#through an error
'''
error= ValueError: cannot set using a slice indexer with a different length than the value... my df len is enough.
The text was updated successfully, but these errors were encountered: