Series: Learn Trading — Day 6 of 24
Yesterday we covered RSI — a pure momentum oscillator. Today we’re looking at MACD, which is arguably the most popular indicator in technical analysis. It combines trend-following and momentum into a single, readable chart overlay.
MACD stands for Moving Average Convergence Divergence. Sounds intimidating, but once you break it down, it’s surprisingly intuitive.
What MACD Actually Is
At its core, MACD measures the relationship between two exponential moving averages (EMAs). Remember EMAs from Day 3? MACD just takes that concept further.
Here’s the formula:
MACD Line = 12-period EMA − 26-period EMA
That’s it. You subtract the slower EMA from the faster one. When the faster EMA is above the slower one, MACD is positive (bullish momentum). When it’s below, MACD is negative (bearish momentum).
But MACD doesn’t stop there. It adds two more components:
- Signal Line — A 9-period EMA of the MACD line itself. Think of it as a smoothed version that helps you spot turning points.
- Histogram — The difference between the MACD line and the signal line, plotted as bars. This is the “at a glance” part — growing bars mean momentum is increasing, shrinking bars mean it’s fading.
Reading MACD on a Chart
Open any stock on Sahi — say Reliance Industries — and add the MACD indicator. You’ll see three things below the price chart:
- A blue line (MACD line)
- An orange line (signal line)
- Green and red bars (histogram)
Here’s how to read them:
MACD Line Crosses Above Signal Line → Bullish
This is the classic “buy signal.” The faster momentum is pulling ahead of the smoothed average. If Reliance’s MACD crosses above its signal line after a dip, traders take notice.
MACD Line Crosses Below Signal Line → Bearish
The opposite. Momentum is fading. If TCS shows this after a rally, it might be time to tighten your stop loss or book profits.
Zero Line Crossover
When the MACD line crosses above zero, it means the 12 EMA has crossed above the 26 EMA — a trend change. Below zero means the short-term trend is bearish relative to the medium-term.
Histogram Growing → Momentum Increasing
When the histogram bars are getting taller (in either direction), the trend is strengthening. When they start shrinking, the trend might be losing steam — even before the lines cross.
A Practical Example
Let’s say you’re watching Nifty 50 on a daily chart. Here’s a scenario:
- Nifty has been falling for two weeks. MACD is below zero, below the signal line, and the histogram shows big red bars.
- The red bars start shrinking — momentum is weakening even though price is still falling. This is your first clue.
- MACD line crosses above the signal line — bullish crossover. Some traders enter here.
- MACD crosses above zero — confirming the trend has shifted. More conservative traders enter here.
The key insight: MACD gave you a heads-up before the trend fully reversed. That’s the power of tracking momentum shifts.
MACD Divergence — The Advanced Signal
This is where MACD really shines, and it connects directly to what we learned with RSI divergence yesterday.
Bullish Divergence: Price makes a lower low, but MACD makes a higher low. The selling momentum is weakening even though prices are still dropping. Classic reversal setup.
Bearish Divergence: Price makes a higher high, but MACD makes a lower high. The buying momentum is fading despite new highs. Time to be cautious.
Example: In late 2024, HDFC Bank’s stock made a new high on the daily chart, but MACD peaked lower than its previous peak. Within a few sessions, the stock pulled back. Divergence warned you.
Common Mistakes with MACD
1. Using It Alone
MACD is powerful, but no single indicator should drive your decisions. Pair it with support/resistance levels, volume (Day 4), and RSI (Day 5) for confirmation.
2. Ignoring the Timeframe
MACD on a 5-minute chart will give you dozens of crossovers a day — most of them noise. On daily or weekly charts, signals are fewer but far more reliable. For swing trading on NSE stocks, the daily timeframe works well.
3. Chasing Every Crossover
Not every bullish crossover leads to a rally. In a strong downtrend, you’ll see brief MACD crossovers that quickly fail. Always check the bigger trend first. If the weekly chart is bearish, daily bullish crossovers are suspect.
4. Default Settings Aren’t Sacred
The 12-26-9 settings are defaults, not commandments. Some traders use 8-21-5 for faster signals. Experiment on Sahi’s charts to see what suits your trading style — but don’t over-optimize.
MACD vs RSI — When to Use Which?
You now know both. Here’s a quick mental model:
| Situation | Better Tool |
|---|---|
| Trending market | MACD (it thrives in trends) |
| Range-bound market | RSI (overbought/oversold levels work better) |
| Spotting divergences | Both work — use them together for stronger confirmation |
| Quick momentum check | RSI (single number, instant read) |
| Trend direction + momentum | MACD (gives you both in one) |
The best traders don’t pick one — they layer them. MACD for the big picture, RSI for fine-tuning entries.
How to Practice
- Open Sahi and pull up any Nifty 50 stock — Infosys, ICICI Bank, whatever interests you.
- Add MACD with default settings (12, 26, 9).
- Scroll back through 6 months of daily data.
- Mark every signal-line crossover. How many led to real moves? How many were fakeouts?
- Now add RSI alongside. Notice how combining both filters out bad signals.
Do this for 3-4 stocks and you’ll start developing intuition for how MACD behaves in different market conditions.
Key Takeaways
- MACD = 12 EMA minus 26 EMA, with a 9 EMA signal line and histogram
- Crossovers (MACD above/below signal) are basic buy/sell signals
- Zero-line crossovers confirm trend direction
- Histogram shows momentum strength at a glance
- Divergence between price and MACD is the most powerful signal
- Works best in trending markets; combine with RSI for range-bound conditions
- Always confirm with other tools — never trade on one indicator alone
Tomorrow, we’ll explore Bollinger Bands — an indicator that measures volatility and helps you spot when a stock is about to make a big move.
This is Day 6 of a 24-day series on trading. Follow along to build a solid foundation, one concept at a time.