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

ValueError with 4-hour data, but not 1-hour data #578

Open
toncorp opened this issue Feb 6, 2023 · 2 comments
Open

ValueError with 4-hour data, but not 1-hour data #578

toncorp opened this issue Feb 6, 2023 · 2 comments

Comments

@toncorp
Copy link

toncorp commented Feb 6, 2023

As title states, I'm getting a ValueError when I run my code with 4-hour data, but not with 1-hour data. I'm using CSVs. 1-hour data runs perfectly as expected. However, when I export data in exactly the same way, just changing the time interval to 4-hour, I get this warning: "FutureWarning: reindexing with a non-unique Index is deprecated and will raise in a future version" which I don't get when I run the code with the 1-hour data, and then I get this error: "ValueError: cannot reindex on an axis with duplicate labels". The error is originating with df.ta.macd(append=True), however when I comment it out, it just throws the same error with a new line, in my case df.ta.msi(append=True).

Any ideas what's causing the error to occur with 4-hour data, but not 1-hour?

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Feb 6, 2023 via email

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Feb 7, 2023

This project doesn't add a ta method to data frames.

Are you using a custom wrapper? Or using a different project?

We also don't have an MSI indicator?

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

2 participants