I am using google sheets and GoogleFinance functions to get stock data. I am able to calculate a simple moving average with the below formula. I am trying to get an Exponential moving average for lengths 8,13,21,55 for each stock. Any suggestion on the formula for an Exponential moving average
=AVERAGE(INDEX(GoogleFinance("MSFT","all",WORKDAY(TODAY(),-8),TODAY()),,3))
