Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 5

Moving Average Excel Template

Visit: www.educba.com
Email: info@educba.com
y to explain the concept of moving average. The stock prices for the last 12 days are as follows:

Periodicity 5

Moving Average is calculated using the formula given below


Simple Moving Average = (A1 + A2 + …… + An) / n

Day Stock Price 5-Day Moving Average


1 30.5 -
2 30.6 -
3 30.35 -
4 29.7 -
5 28.1 24.23
6 29.25 23.75
7 30.25 23.48
8 30.9 23.46
9 31.05 23.70
10 32.15 24.29
11 32 24.87
12 31.5 25.22
13 25.34
Let us take the above example to predict the stock price on the 13 th day using 4- day weighted
moving average such that most recent to last weightages are 0.50, 0.30, 0.15 and 0.05.

W1 0.05
W2 0.15
W3 0.30
W4 0.50

Moving Average is calculated using the formula given below


Weightage Moving Average = (A1*W1 + A2*W2 + …… + An*Wn)

Day Stock Price 4-Day Moving Average


1 30.50 -
2 30.60 -
3 30.35 -
4 29.70 -
5 28.10 30.07
6 29.25 29.04
7 30.25 29.03
8 30.90 29.60
9 31.05 30.32
10 32.15 30.80
11 32.00 31.54
12 31.50 31.85
13 31.73
Let us take the above example to predict the stock price on the 13 th day using a 4-day exponential moving average.

Periodicity 5
Multiplying Factor 0.33

Moving Average is calculated using the formula given below


Exponential Moving Average = (C – P) * 2 / (n + 1) + P

Day Stock Price 4-Day Moving Average


1 30.50 -
2 30.60 -
3 30.35 -
4 29.70 -
5 28.10 26.05
6 29.25 26.74
7 30.25 27.57
8 30.90 28.47
9 31.05 29.28
10 32.15 29.87
11 32.00 30.63
12 31.50 31.09
13 31.22
ential moving average.

You might also like