So I have in a function scheduled to run daily:
closes = history(31, "1d", "close_price", ffill=True).bfill()
closes.fillna(0)
emaIndicator1 = closes.apply(talib.EMA, timeperiod=7)
No matter what I try to do with backfilling, forwardfilling, replacing, I always get:
Exception: inputs are all NaN