bta-lib icon indicating copy to clipboard operation
bta-lib copied to clipboard

bta-lib error : trying to use rsi indicator but gives ValueError: cannot set using a slice indexer with a different length than the value

Open aliniko79 opened this issue 3 years ago • 0 comments

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.

aliniko79 avatar Jun 10 '21 19:06 aliniko79