Moving Averages - SMA, EMA, WMA
Moving Averages - SMA, EMA, WMA
Simple Moving Average (SMA)
The Simple Moving Average (SMA) is one of the most common indicators in technical analysis, calculated by averaging a security's price over a specific number of periods. It helps smooth out price action by filtering out the day-to-day price fluctuations.
Formula for SMA:
SMA = (P1 + P2 + ... + Pn) / n, where P1, P2, ..., Pn are the closing prices of the asset over n periods.
Key Use Cases:
- Identifying overall price trends over a period of time.
- Used to confirm bullish or bearish trends based on crossovers with the price or other moving averages.
Example: A 50-day SMA would average the closing prices of an asset over the last 50 trading days.
Exponential Moving Average (EMA)
The Exponential Moving Average (EMA) is a type of moving average that gives more weight to recent prices, making it more responsive to new information compared to the SMA. It is particularly useful for detecting trends quickly in volatile markets.
Formula for EMA:
EMA = (Price(t) * (α)) + (EMA(previous) * (1 - α)), where α is the smoothing factor, calculated as α = 2 / (n + 1) and n is the number of periods.
Key Use Cases:
- More responsive to price changes than the SMA, making it useful in trending markets.
- Commonly used in conjunction with the MACD to identify bullish or bearish crossovers.
Example: A 50-day EMA gives more weight to recent price movements, which can indicate changes in trends more quickly than the 50-day SMA.
Weighted Moving Average (WMA)
The Weighted Moving Average (WMA) assigns different weights to different periods, giving more importance to certain data points, typically more recent ones. This makes the WMA more adaptable and responsive to changes in price action.
Formula for WMA:
WMA = (P1 * W1 + P2 * W2 + ... + Pn * Wn) / (W1 + W2 + ... + Wn), where P1, P2, ..., Pn are the prices and W1, W2, ..., Wn are the weights assigned to each period.
Key Use Cases:
- Used to emphasize more recent data, making it faster to react to price changes than SMA.
- Helps identify the trend direction by giving more weight to recent price movements while smoothing out noise from older data.
Example: A 10-day WMA with weights assigned to each day, where the most recent day has the highest weight, would emphasize the most recent price movement more heavily.
Comments
Post a Comment