I am using ta-lib for Technical Analysis in Python. Here is a small piece of code I wrote:
SBIN=pd.read_csv('SBIN.NS.csv')
ema=TA.SMA(SBIN.Close,timeperiod=20)
The first 19 values in the ema array are NaN, which are totally understandable. But after a certain position also, ema
has NaN values. Why is this happening?