Introduction
A simple moving average is calculated by adding the closing price of the security for a number of time periods and then dividing this total by the number of time periods. Short-term averages respond quickly, while long-term averages react slowly to changes in the price.
Note:
Mostly Moving Averages can be calculated on the base of closing price of security, but we can calculate it using Open, High, or Low price as well.
Formula
SMA = Sum of closing price of security over period / Number of period
Advantage
he "Simple Moving Average" indicator is one of the oldest and most common indicators used across all financial markets. it can be used to smooth out the effects of price volatility and create a clearer picture of changing price trends. Traders use an SMA, sometimes in concert with another SMA for a different period, to signal confirmation of a change in price behavior.
Sample Calculation