bukosabino / ta

Technical Analysis Library using Pandas and Numpy
https://technical-analysis-library-in-python.readthedocs.io/en/latest/
MIT License
4.35k stars 923 forks source link

volume_adi returning INF and NAN values #120

Open tcwongau opened 4 years ago

tcwongau commented 4 years ago

While trying to add all TA features, I have downloaded a dataset from Yahoo Finance, which I also attached in the zip

The data that I used is from 2012-09-06 to 2013-07-25 and all OHLC and volume values seem to have no problem.

However, when I try to calculate TA features,

test1076 = ta.add_all_ta_features(
    test1076, open="Open", high="High", low="Low", close="Close", volume="Volume")

2013-04-12 onwards return INF values 2013-07-24 onwards return NAN values

test dataset: 1076HK_bug.zip

TahaSaeidi commented 3 years ago

Still I have problem with ADI, is it resolved? I have installed 0.7.0 for python.