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 compatibility issues with new Numpy releases. #15

Open
neilsmurphy opened this issue Apr 5, 2021 · 0 comments
Open

bta-lib compatibility issues with new Numpy releases. #15

neilsmurphy opened this issue Apr 5, 2021 · 0 comments

Comments

@neilsmurphy
Copy link

BTA-LIB is running into compatibility issues with Numpy. From backtrader forum:
bta-lib adx() error

@run-out I found the library version incompatibility! I was running with numpy v1.20.1, the latest version. I installed an older version, the version of numpy available right around when btalib v1.0.0 was released, numpy v1.18.2. It worked 🙌🏼 So that means bta-lib needs to be updated to work with the latest versions of pandas and numpy.
Thanks again for taking the time to work this out with me 👍🏼🌷
Here's my output now:

(sandbox) 13:13 • screener • master • d5822cb ✗
❯ python bta-adx.py
numpy v1.18.2
pandas v1.0.4
btalib v1.0.0
                 Open       High        Low  ...    Volume        rsi        adx
Date                                         ...
2021-03-22  79.989998  81.269997  79.220001  ...  39648600  44.939105  26.393616
2021-03-23  80.129997  80.339996  77.949997  ...  40466600  41.737588  26.112061
2021-03-24  77.550003  78.800003  76.400002  ...  43753600  38.792404  26.252038
2021-03-25  75.849998  76.949997  74.959999  ...  44735100  38.393151  26.729348
2021-03-26  76.620003  77.500000  75.029999  ...  49109400  41.367524  26.915669
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