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

bta-lib compatibility issues with new Numpy releases.

Open neilsmurphy opened this issue 3 years ago β€’ 0 comments

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

neilsmurphy avatar Apr 05 '21 11:04 neilsmurphy