title: GoogleFinance function to calculate Exponential moving average in google sheets
body: <p>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</p>
  
  <pre><code>=AVERAGE(INDEX(GoogleFinance("MSFT","all",WORKDAY(TODAY(),-8),TODAY()),,3))
  </code></pre>
  
  <p><strong>Edit:</strong>
  Adding my google sheet experince
  <a href="https://i.stack.imgur.com/ERsjb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ERsjb.png" alt="enter image description here"></a></p>