bukosabino / ta

Technical Analysis Library using Pandas and Numpy

Home Page:https://technical-analysis-library-in-python.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ATR - ValueError: The truth value of a Series is ambiguous.

EIGdataHunter opened this issue · comments

Hi
I've got
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
when tried to get ATR using ta.volatility.average_true_range(h, l, c, 2, False).

I managed to get this indicator several times before during the last half a year, but when I tried to run it yesterday I got an error.
Tell me what direction to look to fix this