What is the formula for average daily trading volume calculated by Google Finance formula?

user781486 picture user781486 · Apr 5, 2014 · Viewed 12.1k times · Source

Average daily trading volume is obtained by this formula GOOGLEFINANCE("Symbol", "volumeavg") on Google Spreadsheet. How is the average volume calculated? Based on how many days of moving average?

Answer

sarikas picture sarikas · Jun 25, 2019

You can also do the following:

  • get the last x many days' volume for a ticker (I used 80 to be safe since there are weekends, and holidays for when the market is closed)
  • query the 50 records descending by date, (for a 50 day moving average use 50, for other averages use your own limit)
  • get just the prices
  • average

    =average(index(query(googlefinance("AAPL","volume",today()-80,today()), "select * order by Col1 desc limit 50"),0,2))