The Moving Average (MA) is a widely used technical analysis indicator that smooths out price data by creating a constantly updated average price over a specified period. It helps traders identify trends, support/resistance levels, and potential entry/exit points by reducing market "noise."
Types of Moving Averages:

Simple Moving Average (SMA)
Calculates the average price over a fixed number of periods (e.g., 50-day SMA).
Formula:
SMA=nP1+P2+⋯+Pn
where P = price, n = number of periods.
Pros: Smooth, easy to interpret.
Cons: Lags behind recent price action.
Exponential Moving Average (EMA)
Gives more weight to recent prices, making it more responsive to new data.
Formula (simplified):
EMAtoday=(Ptoday×Smoothing Factor)+(EMAyesterday×(1−Smoothing Factor))
where Smoothing Factor = n+12.
Pros: Reacts faster to price changes.
Cons: More prone to false signals (whipsaws).
Common Uses of Moving Averages:
Trend Identification:
Price above MA → Uptrend.
Price below MA → Downtrend.
Crossovers:
Golden Cross: Short-term MA (e.g., 50-day) crosses above long-term MA (e.g., 200-day) → Bullish signal.
Death Cross: Short-term MA crosses below long-term MA → Bearish signal.
Dynamic Support/Resistance: Prices often bounce off MAs in trending markets.
Multiple MA Strategy: Using two or more MAs (e.g., 9 EMA & 21 EMA) to spot momentum shifts.
Popular MA Periods:
Short-term: 5, 10, 20, 50 (for day/swing trading).
Long-term: 100, 200 (for trend confirmation).
Limitations:
Works best in trending markets (can give false signals in choppy/range-bound conditions).
Lagging indicator (reacts to past prices, not predictive).
