`fillna = False` of ATR not work?
KagenoMoheji opened this issue · 0 comments
KagenoMoheji commented
The code below returns dataframe filled with 0, not NaN
.
df["atr"] = ta.volatility.AverageTrueRange(
df["High"],
df["Low"],
df["Close"],
window = 14,
fillna = False
).average_true_range()