Exponential Moving Average (EMA)
What Is EMA?
The
Exponential Moving Average (EMA) is a type of moving average that gives
more weight to recent prices, making it faster and more responsive than the Simple Moving Average (SMA).
It helps traders track trends and spot reversals by smoothing out price fluctuations while staying close to the actual price.
How EMA Works
- EMA reacts quickly to price changes because it focuses more on recent data.
- It’s calculated using a smoothing multiplier, which increases the influence of the latest prices.
- Common EMA periods:
- Short-term: 8-day, 12-day, 20-day
- Medium-term: 50-day
- Long-term: 200-day
Exponential Moving Average (EMA) Formula
Step 1: Calculate the Multiplier (Smoothing Factor)
The multiplier decides
how much weight is given to today’s price.
Formula:
Multiplier=2Period+1Multiplier = \frac{2}{Period + 1}Multiplier=Period+12
Example: 20-Day EMA
Multiplier=220+1Multiplier = \frac{2}{20 + 1}Multiplier=20+12
Multiplier=221Multiplier = \frac{2}{21}Multiplier=212
Multiplier=0.0952Multiplier = 0.0952Multiplier=0.0952
- - This means
9.52% weight is given to today’s price.
The remaining
90.48% weight comes from the previous EMA value.
Step 2: EMA Calculation Formula
EMAToday=(PriceToday×Multiplier)+(EMAYesterday×(1-Multiplier))EMA_{Today} = (Price_{Today} \times Multiplier) + (EMA_{Yesterday} \times (1 - Multiplier))EMAToday =(PriceToday ×Multiplier)+(EMAYesterday ×(1-Multiplier))
What Each Term Means
- Price today = Today’s closing price
- EMA yesterday = Previous day’s EMA
- Multiplier = Smoothing factor
- (1 - Multiplier) = Remaining weight
Step 3: First EMA Value
The first EMA is calculated using:
First EMA=Simple Moving Average (SMA)First\ EMA = Simple\ Moving\ Average\ (SMA)First EMA=Simple Moving Average (SMA)
Example:
If calculating 20-day EMA,
First EMA = 20-day SMA
Full Practical Example (Easy Understanding)
Let’s assume:
- Period = 5 days (small number for easy example)
- Multiplier = 2 / (5 + 1) = 2 / 6 = 0.3333
- Yesterday’s EMA = 100
- Today’s closing price = 110
Now Apply Formula
EMAToday=(110×0.3333)+(100×(1-0.3333))EMA_{Today} = (110 \times 0.3333) + (100 \times (1 - 0.3333))EMAToday =(110×0.3333)+(100×(1-0.3333))
Step 1:
110×0.3333=36.66110 \times 0.3333 = 36.66110×0.3333=36.66
Step 2:
1-0.3333=0.66671 - 0.3333 = 0.66671-0.3333=0.6667 100×0.6667=66.67100 \times 0.6667 = 66.67100×0.6667=66.67
Step 3:
EMAToday=36.66+66.67EMA_{Today} = 36.66 + 66.67EMAToday =36.66+66.67 EMAToday=103.33EMA_{Today} = 103.33EMAToday =103.33
Final Result
New EMA =
103.33
Even though price moved from 100 to 110,
EMA only moved to 103.33 because it smooths the movement.