What is Moving Average in Stock Market? Types, Purpose, Formula, Calculation, Example, Pros & Cons
What is Moving Average in Stock Market?
In stock market, moving average is an indicative technical analysis tool that is used to analyse stock prices and trend for over a given time period. A rising moving average indicates that the security is in an uptrend, while a declining moving average indicates a downtrend It is calculated by taking the average price of a stock over a specified period of time and then plotting that average on a chart. The resulting line represents the moving average of the stock price.
Traders, Investors and analysts use moving averages in a variety of ways. One common use is to identify support and resistance levels in a stock’s price chart. If the price of a stock is consistently above its moving average, it may indicate a bullish trend, while if it is consistently below its moving average, it may indicate a bearish trend. Moving averages can also be used to identify buy and sell signals according to trend and indication.
Types of Moving Averages:
Followings are the three types of moving averages commonly used in stock market: –
1. Simple Moving Average (SMA): Simple moving averages is a commonly used technical analysis indicator that shows the average price of a financial asset over a specific period of time. It is calculated by adding up the closing prices of an asset over a certain number of periods and then dividing the sum by the number of periods.
For example, a 10-day SMA for a stock would be calculated by adding up the closing prices of the past 10 days and dividing by 10. Each day, the oldest closing price is dropped from the calculation and the most recent closing price is added, so the SMA value constantly updates over time.
SMA is considered a lagging indicator because it is based on past prices. It can help traders identify trends in the price of a stock, as well as potential support and resistance levels. Some traders use a combination of SMAs with different time periods to identify trends and potential trading opportunities.
SMA can be calculated for any time frame, such as days, weeks, or months, depending on the trader or analyst’s preference. The longer the time frame, the smoother the SMA line will be, while shorter time frames will be more sensitive to price changes.
2. Exponential Moving Average (EMA): An exponential moving average (EMA) is a type of moving average that gives more weight to recent prices compared to older prices in a time series. In contrast to a simple moving average (SMA), which gives equal weight to all prices in the time period being analysed, the EMA places greater emphasis on the most recent prices.
The calculation of an EMA involves taking the previous period’s EMA value and applying a smoothing factor to it, along with the latest period’s price data. The smoothing factor is a value that determines the weight given to the current price data, with a larger smoothing factor giving more weight to recent prices.
3. Weighted Moving Average (WMA): A weighted moving average (WMA) is a type of moving average that assigns greater weight to the most recent data points in a time series. Unlike a simple moving average (SMA) or exponential moving average (EMA), which give equal weight to all data points within a given period, a WMA gives more weight to the most recent data points and less weight to older data points.
The calculation of a WMA involves multiplying each data point by a weight factor and then summing up the products. The weight factors are determined based on the number of data points in the time series and the desired length of the moving average. The sum of the weight factors should always add up to 1.
Formula and Examples of Moving Averages: –
1. The formula for calculating a Simple Moving Average (SMA) is:
SMA = (Sum of Prices for n periods) / n
where:
- Sum of Prices for n periods is the sum of the closing prices for the desired number of periods.
- n is the number of periods being averaged.
For example, let’s say we want to calculate a 10-day SMA for a stock using the closing prices from the previous 10 days:
Day 1: 50.00
Day 2: 52.00
Day 3: 53.50
Day 4: 52.50
Day 5: 54.00
Day 6: 55.50
Day 7: 56.25
Day 8: 55.75
Day 9: 56.50
Day 10: 57.00
We would sum the closing prices for the past 10 days and divide the total by 10:
SMA = (50.00 + 52.00 + 53.50 + 52.50 + 54.00 + 55.50 + 56.25 + 55.75 + 56.50 + 57.00) / 10 = 54.45
The SMA value will change each day as new price data becomes available, and it will reflect the average price over the specified period. SMAs are commonly used in technical analysis to identify trends and potential trading opportunities.
2. The formula for calculating an Exponential Moving Average (EMA) is:
EMA = (Current Price x Smoothing Factor) + (Previous EMA x (1 – Smoothing Factor))
where:
- Current Price is the most recent price data in the time series.
- Smoothing Factor is the value used to weight the current price data.
- Previous EMA is the EMA value from the previous period.
For example, let’s say we want to calculate a 5-day EMA for a stock using the closing prices from the previous 5 days:
Day 1: 50.00
Day 2: 52.00
Day 3: 53.50
Day 4: 52.50
Day 5: 54.00
Assuming a smoothing factor of 0.33 (which is commonly used for a 5-day EMA), we can calculate the EMA as follows:
EMA Day 1 = 50.00 (the first EMA is equal to the first closing price)
EMA Day 2 = (52.00 x 0.33) + (50.00 x 0.67) = 50.67
EMA Day 3 = (53.50 x 0.33) + (50.67 x 0.67) = 51.63
EMA Day 4 = (52.50 x 0.33) + (51.63 x 0.67) = 51.23
EMA Day 5 = (54.00 x 0.33) + (51.23 x 0.67) = 52.16
The EMA value is updated each day as new price data when it becomes available, and it reflects the most recent price changes more strongly than a simple moving average with the same period. EMAs are commonly used in technical analysis to identify trends and potential trading opportunities.
3. The formula for calculating a Weighted Moving Average (WMA) is:
WMA = [(P1 x w1) + (P2 x w2) + … + (Pn x wn)] / (w1 + w2 + … + wn)
where:
- P1, P2, …, Pn are the closing prices for the desired number of periods.
- w1, w2, …, wn are the weights assigned to each period. The sum of the weights should add up to 1.
For example, let’s say we want to calculate a 5-day WMA for a stock using the closing prices from the previous 5 days. We will use the following weights: 5, 4, 3, 2, 1 (with a sum of 15):
Day 1: 50.00
Day 2: 52.00
Day 3: 53.50
Day 4: 52.50
Day 5: 54.00
We would multiply each closing price by its corresponding weight, sum the products, and divide by the sum of the weights:
WMA = [(50.00 x 1) + (52.00 x 2) + (53.50 x 3) + (52.50 x 4) + (54.00 x 5)] / (1 + 2 + 3 + 4 + 5) = (50.00 + 104.00 + 160.50 + 210.00 + 270.00) / 15 = 54.10
The WMA value will change each day as new price data becomes available, and it will reflect the weighted average price over the specified period. WMAs are commonly used in technical analysis to identify trends and potential trading opportunities.
Purposes of Moving Average: –
Moving averages are a commonly used tool in technical analysis to identify trends, potential buy or sell signals, and support/resistance levels. Here are some of the main purposes and uses of moving averages in the stock market:
- Trend identification: Moving averages can help identify the direction and strength of a trend. Traders often use a moving average to determine whether a stock is in an uptrend or downtrend. When the price is above the moving average, it’s considered a bullish signal, and when the price is below the moving average, it’s considered a bearish signal.
- Support and resistance levels: Moving averages can also serve as support or resistance levels. A moving average that is trending upward may act as support, while a moving average that is trending downward may act as resistance.
- Buy and sell signals: When a stock’s price crosses above or below a moving average, it can generate a buy or sell signal. For example, if the price crosses above a moving average, it’s considered a bullish signal, and if it crosses below a moving average, it’s considered a bearish signal.
- Trading strategies: Moving averages can be used in combination with other technical indicators to develop trading strategies. For example, some traders use a crossover strategy, where they buy when the shorter-term moving average crosses above the longer-term moving average, and sell when the shorter-term moving average crosses below the longer-term moving average.
Pros and Cons of Moving Averages:
Like any technical indicator, moving averages have both advantages and disadvantages. Here are some of the pros and cons of using moving averages in the stock market: –
Pros:
- Trend identification: Moving averages can help identify the direction of the trend, which is essential for traders to make informed decisions about when to buy or sell a stock.
- Simplifies price data: Moving averages can help smooth out the price data and eliminate some of the noise, making it easier to identify trends and patterns.
- Widely used: Moving averages are one of the most widely used technical indicators, making them familiar to many traders and investors.
- Customizable: Moving averages can be customized to fit different timeframes, making them flexible and adaptable to different trading strategies.
Cons:
- Lagging indicator: Moving averages are based on historical price data, which means they are a lagging indicator and may not provide an accurate prediction of future price movements.
- False signals: Moving averages can generate false signals, particularly in markets with a lot of volatility or sideways movement.
- Not suitable for all stocks: Moving averages may not be suitable for all stocks, especially those with low trading volume or high volatility.
- Over-reliance: Traders may become over-reliant on moving averages and fail to consider other indicators or fundamental analysis, leading to poor investment decisions.
Overall, moving averages are a one of the valuable tools for traders and investors in the stock market, for helping them to identify trends, potential buy or sell signals, and support/resistance levels. However, it’s important to note that moving averages are not always accurate, and should be used in combination with other indicators and analysis techniques to get best result.
For more keep visiting www.moneysmint.com