Zero Trading Charges

Zero Trading Charges
Zero Trading Charges
  • Breaking News

    Moving Average - Definition, Formula, and Examples

    What is Moving Average?

    A moving average is simple technical Indicator that is being used in stock or share market to catch the direction of the trend over the current price. It is simple set of data points over a specific numbers of periods says 5 days or 10 days or 200 days.

    Type of Moving Average

    There are 2 types of Moving average
        1. Simple Moving Average ( SMA)
        2. Exponential Moving Average ( EMA)

    1. Simple Moving Average ( SMA) : A simple moving average (SMA) is a statistical calculation used to analyze data points by creating a series of averages of different subsets of the full data set. It is commonly employed in financial analysis, technical analysis, and trend identification in various fields.

    To compute a simple moving average, you take the arithmetic mean of a specified number of data points over a certain period. For instance, a 10-day SMA for a stock price involves adding up the closing prices of the last 10 days and dividing the sum by 10.

    SMA is particularly useful for smoothing out fluctuations or noise in a dataset, providing a clearer picture of the underlying trend over a specified time frame. Traders and analysts use SMAs to identify trends, potential reversals, or support/resistance levels in financial markets or to analyze other time-series data.

    2. Exponential Moving Average: An Exponential Moving Average (EMA) is a type of moving average that gives more weight and significance to the most recent data points in a dataset while still considering older data. Unlike the Simple Moving Average (SMA), where each data point in the period carries equal weight, the EMA places greater importance on the most recent observations.

    The calculation of an Exponential Moving Average involves a formula that considers the current price, the previous EMA value, and a smoothing factor (usually represented as a percentage based on the chosen time period). The formula for calculating the EMA is:

    =()×Smoothing Factor+

    Where:

    • represents the latest closing price or data point.
    • is the previous EMA value.
    • The Smoothing Factor depends on the chosen time period and is typically calculated using the formula: 2chosen period+1. For example, for a 10-day EMA, the smoothing factor would be 210+1=0.1818.

    EMA reacts more sensitively to recent price changes compared to the SMA, making it quicker to respond to price movements. Traders and analysts often use EMAs to identify trends, potential reversals, and to generate buy or sell signals in financial markets, technical analysis, and other data analysis applications.


    Simple Moving Average Calculation:

    The formula for calculating a Simple Moving Average (SMA) involves summing up a specified number of data points and then dividing the sum by the number of data points. The formula is straightforward:

    SMA=Sum of data pointsNumber of data points

    Let's consider an example to calculate a 5-day Simple Moving Average for a set of closing prices:

    Closing prices for a stock over 7 days: 25, 28, 30, 32, 29, 31, 35

    To find the 5-day SMA:

    1. Calculate the sum of the closing prices for the most recent 5 days: Sum of the last 5 days = 29 + 31 + 35 = 95

    2. Divide the sum by the number of data points (which is 5, as it's a 5-day SMA): SMA = Sum of data points / Number of data points SMA = 95 / 3 = 31.67

    Therefore, the 5-day Simple Moving Average of the closing prices for the given 7-day period is 31.67.

    This calculation involves taking the average of the most recent 5 days' closing prices, and as new data comes in, the calculation shifts to the next set of 5 data points, discarding the oldest and including the most recent one.


    SMA
    SMA 7, 30, 50, 100, 200
    Exponential Moving Average Calculation: 

    The formula for calculating an Exponential Moving Average (EMA) involves using a smoothing factor, a multiplier that gives more weight to the most recent data points. The formula for EMA calculation is:

    EMAtoday=Closetoday×Smoothing factor+EMAyesterday×(1Smoothing factor)

    Where:

    • Closetoday represents the latest closing price or data point.
    • EMAyesterday is the previous day's EMA value.
    • The Smoothing factor is determined by the chosen time period. It is calculated using the formula: Smoothing factor=2chosen period+1.

    Let's calculate a 5-day Exponential Moving Average for a set of closing prices:

    Closing prices for a stock over 7 days: 25, 28, 30, 32, 29, 31, 35

    Given that we want to calculate a 5-day EMA:

    1. Calculate the smoothing factor: Smoothing factor=2chosen period+1=25+1=0.3333

    2. Calculate the initial SMA as there's no previous EMA for the first value. For the sake of this example, the SMA for the first 5 days will be used as the initial EMA: SMA=Sum of first 5 days’ closing pricesNumber of data points=25+28+30+32+295=1445=28.8

    3. Calculate the first EMA using the SMA and the first day's closing price: EMADay 6=CloseDay 6×Smoothing factor+SMA×(1Smoothing factor) EMADay 6=31×0.3333+28.8×(10.3333)=10.333+19.199=29.532

    4. Repeat the process for subsequent days: EMADay 7=35×0.3333+29.532×(10.3333)=11.665+19.688=31.353

    Therefore, the 5-day Exponential Moving Average for the given 7-day period is approximately 29.53 for the 6th day and approximately 31.35 for the 7th day.

    EMA
    EMA 20, 50, 100, 200


    No comments