Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aliniko79 opened this issue Jun 10, 2021 · 0 comments

Comments

@aliniko79
Copy link

aliniko79 commented Jun 10, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant