How are 200 day moving averages calculated?

When I look at the 200 day moving average for a stock on a two year chart versus a five year chart, they are different. How can that be if the 200 day market average is based upon the stock price for the past 200 days regardless of the chart period?

Sort By:
Most Helpful
October 2017


Moving averages are defined periodically. Although daily is a popular period to track, periods can be defined as seconds, minutes, days, weeks, years, and just about everything between and beyond.

This being the case, depending on the charting software and package utilized, even if something is labeled “200 day moving average” it may be a 200 period moving average. So, when you switch from a two-year chart to a five-year chart, the periods measured may automatically switch to something other than daily to fit the data within the new, longer charting span. If the periods change, then it will alter the measurement of the periodic moving average.

Try using charts where you can control the periods measured, as well as the date ranges and parameters of the moving average (such a chart can be found here). You will find that if the periods are defined as daily, the span of the chart will not affect the 200 period moving average if the end date does not change.  

October 2017
October 2017