How daily moving average calculated ?
if N is the number of days in the period The daily moving average equals the sum of the closing prices for the prior N days divided by N. Note that DMA usually lags a day, (e.g. today’s DMA does not include today’ s close) There are other methods, which may give you slightly different result but are easier to calculate.