A moving average is a trend-following indicator that smooths price data over time—essential for identifying trend direction and dynamic support/resistance levels in forex trading.
How Moving Averages Work
A moving average calculates the average price over a set period, then recalculates for each new bar, creating a “moving” line that follows price.
Example: 20-period Moving Average on 1-hour chart
- Takes the last 20 hours of closing prices
- Calculates the average
- Plots it on the chart
- Next bar, drops the oldest hour and adds the newest hour
- Recalculates the average
The longer the period, the smoother the line. Shorter periods follow price more closely.
Types of Moving Averages
| Type | Formula | Best For | Lag |
|---|---|---|---|
| SMA | Average all closes equally | Long-term trends | Higher |
| EMA | Weighted toward recent closes | Short-term, responsive | Lower |
| Weighted MA | Recent prices weighted more | Custom weighting | Varies |
Most forex traders use SMA for long-term (50, 100, 200) and EMA for short-term (5, 10, 20).
Moving Average as Trend Identifier
Uptrend: Price trading above moving average
- Support often holds at the MA
- Each pullback bounces from the MA
- Strong trend = price stays well above MA
Downtrend: Price trading below moving average
- Resistance often sets at the MA
- Each bounce rejected at the MA
- Strong trend = price stays well below MA
No Trend (Sideways): Price oscillates around MA
- MA is crossed frequently
- False signals are common
- Avoid MA-based trading
Real-World EURUSD Example
Setup: EURUSD 4-hour chart, 20-period EMA
Price: 1.1000, EMA: 1.0950, Uptrend confirmed
- Trade: Buy 10 micro-lots above 1.1005
- Stop loss: 1.0945 (below the EMA)
- Take profit: 1.1050
Price pulls back to 1.0965, bounces off the 20-EMA. Trade wins at 1.1050 (+85 pips).
Later, price closes below the EMA (1.0940). Uptrend is broken. Close remaining longs.
The Golden Cross Strategy
Golden Cross: A fast MA crosses above a slow MA = bullish signal Death Cross: A fast MA crosses below a slow MA = bearish signal
Classic Setup: 50/200 Golden Cross
- 50-period EMA crosses above 200-period EMA = strong buy
- 50-period EMA crosses below 200-period EMA = strong sell
This works in trending markets but lags. By the time the golden cross forms, significant price movement has already occurred.
Moving Average Support and Resistance
Moving averages act as dynamic S/R levels:
In Uptrends:
- 20-period MA = immediate support
- 50-period MA = intermediate support
- 200-period MA = major support
Price bounces predictably off these levels. Use them as stop loss placement or entry confirmation.
In Downtrends:
- 20-period MA = immediate resistance
- 50-period MA = intermediate resistance
- 200-period MA = major resistance
Combining Multiple Moving Averages
Using 2-3 MAs helps filter signals:
3-MA Strategy:
- 10-period EMA (fast, confirms momentum)
- 50-period EMA (medium, confirms trend)
- 200-period EMA (slow, confirms macro direction)
Entry: Price above all three, in that order = strong uptrend Exit: Price closes below the 50-period EMA = trend weakness
This reduces false signals compared to a single MA.
Moving Average Crossover
When a fast MA crosses a slow MA, it signals momentum shift:
Bullish Crossover (20 above 50):
- Uptrend beginning
- Consider longs above the 20-MA
Bearish Crossover (20 below 50):
- Downtrend beginning
- Consider shorts below the 20-MA
This is lagging—the move has started by the time the crossover appears. Combine with volume for confirmation.
Key Takeaway
Moving averages identify trends and provide dynamic support/resistance. Use them to filter direction (price above MA = long bias, price below MA = short bias) and combine with other indicators for entries.
Test different MA periods on your preferred timeframe. Does 20 work better than 50? Does 50/200 golden cross produce more winning trades? Track this in your journal.
PipJournal lets you log which moving averages you use on each trade, so you can analyze which MA periods and combinations are actually profitable for your system.