
With the markets hitting frequent record highs and sudden corrections, it is important to realise how quickly the momentum shifts in the market. Indicators like the MACD help in understanding these shifts in a simple and easy manner.
This guide will give you a detailed tour of MACD, how it works, and how to use it for your trading strategy.
What is MACD?
MACD is an indicator that shows the relationship between two moving averages of a stock price. It is used to identify price trends, momentum, and potential buy/sell signals. Introduced by Gerard Appel in the 1970s, MACD has become one of the most commonly used indicators in technical analysis today.
Traders and analysts across different markets still rely on it because it blends trend behaviour and momentum shifts in a way that is easy to interpret on a chart. What makes MACD unique is that instead of comparing the price with the moving average, it compares two distinct exponential moving averages (EMAs) with each other. For this, two EMAs – one shorter than the other are commonly used.
How MACD works
Before diving into trading strategies, we must first understand the components of MACD:
MACD Line
The MACD line is the fastest-moving average. The formula to find it is:
MACD Line = 12-day EMA – 26-day EMA
The movement of the MACD line is used to identify the strength behind the momentum.
Signal Line
It is the 9-day EMA of the MACD line. It is the slowest-moving average used to identify the price trend changes.
Signal Line = MACD Line’s 9-day EMA
When the signal line is crossed over by the MACD line, it indicates a rise in buyer participation. On the other hand, when the MACD line falls beneath the signal line, it means the sellers are gaining control.
MACD Histogram
The MACD histogram reflects the gap between the MACD line and the signal line.
- When the histogram expands, making taller bars, it indicates the momentum is gaining strength.
- On the other hand, when the gap gets smaller, the bars become shorter, indicating the weakening of momentum.
The histogram is very useful in the early detection of trend reversals because the gaps in it begin to shrink even before the actual crossover takes place.
MACD Trading Strategy
There are several ways traders use the MACD to study price behaviour, and different strategies have developed around it over time.
Strategy 1: MACD Line Crossover (Buy/Sell Rules)
The MACD crossover line is used to detect changes in the momentum or trend direction.
Buy Signal Rules (Bullish Crossover)
When the MACD line crosses above the signal line, it is interpreted as the start of a bullish momentum. The histogram grows taller or moves to the positive side.
- A crossover like this is commonly seen as a moment when upward strength might be taking shape, so traders tend to pay closer attention to how the price behaves around it.
- Earlier resistance zones are typically checked to gauge where the move could slow down or meet pressure.
- For managing risk, many rely on the nearest swing low, since a drop below that point can indicate that the momentum may be losing force.
Example
Suppose a stock has been falling and stabilises around ₹1,050. Then a bullish crossover happens, with the histogram becoming positive.
You can take a long position at ₹1,055. The stop-loss can be set at ₹1,030, which helps in risk management. Set the target at ₹1,095, the previous resistance level. You might take an exit if the MACD starts turning bearish again.
This setup offers an early entry into a potential trend reversal.
Sell Signal Rules (Bearish Crossover)
A bearish crossover appears when the MACD line falls under the signal line. The histogram starts to shrink or turns red.
- A bearish crossover indicates that downward pressure is building. Traders use it to take short positions.
- The recent high swing is used to place the stop-loss and manage the risk.
- Support levels are checked to see the previous levels at which the price paused or reversed.
Example
Suppose the price of a stock quickly rises from ₹600 to ₹700. However, MACD forms a bearish crossover, and the histogram starts to shrink. It signals that even with rising prices, the momentum has started to fade.
You can enter short at ₹690, placing the stop-loss above ₹715 (recent high). Setting the target close to the next support level, around ₹1,640, is a good option.
This setup is useful for taking an early short position.
Strategy 2: MACD + RSI Confirmation (High probability setup)
The MACD alone may produce false signals in uncertain or sideways markets. By combining MACD with the Relative Strength Index (RSI), we can confirm whether the momentum is aligned with the signal.
Buying Rules
Enter the trade when:
- The MACD is bullish, indicating buyers gaining control.
- The RSI remains in the neutral zone, which is associated with early recovery phases.
- Prices stay near support levels or begin forming higher lows, suggesting stabilisation.
Stop-loss: You can use an area just below the nearby support zone as a reference for placing the stop-loss.
Target: Monitor the move until RSI approaches the 60–70 region or until the MACD begins to show signs of weakening momentum.
Example: Imagine the price of a stock falls from ₹2,650 to ₹2,500 but holds above a major support zone. The RSI drops to 35 and starts rising again. With all this, the MACD forms a bullish crossover on the chart.
A possible entry point in this scenario could be around ₹2,520. Using the level near ₹2,480 as a stop-loss is effective for managing the risk. You can set targets in the price zone of ₹2,585–₹2,600 or the point where the RSI reaches 68.
When both the indicators align, RSI confirms strengthening momentum, and MACD confirms the trend shift.
Selling Rules
Enter a short trade when:
• There is a bearish signal from MACD, indicating buyers losing strength.
• The RSI is neutral, signalling uncertainty in the trend.
• The price moves close to a resistance area, where upward moves often slow or struggle to continue.
Stop-loss: The resistance zone is usually monitored, and a level slightly above it may be used as a reference point for assessing risk.
Targets: The move is often observed until the RSI drifts toward the 30–40 range or until the MACD starts showing early signs of shifting back toward bullish momentum.
Example: A stock rises from ₹900 to ₹980, and during this move, the RSI touches 65 before starting to decline. The MACD then falls below the signal line.
A possible entry point in this situation could be around ₹960. The area close to ₹990 may be used as a reference for managing risk. The price range of ₹915–₹930 can serve as a zone to observe how the move develops.
Here, the RSI confirms falling buyer strength while the MACD confirms the beginning of bearish momentum.
Strategy 3: MACD + 20 EMA Trend Strategy
This strategy is very useful when applied in trending markets. When EMA is used with MACD, we can confirm the trend and validate the momentum strength.
Buying Rule: You can take a long position when the price stays over the 20-day EMA, and the MACD shows a bullish crossover. You can also look at the histogram for confirming the strength. If it turns green, it is a good time to buy.
Stop-loss: Choosing to place the stop-loss just below the 20-day EMA or the recent swing low is helpful for managing the risk.
Target: The move is generally monitored until the MACD starts showing signs of a bearish crossover. You may exit your position when it happens.
Example: Suppose a stock trading at ₹1,135 shows a steady uptrend. Every time it drops to the 20-day EMA, it rises upward. During one such drop and rise, the MACD forms a bullish crossover.
A possible entry is at ₹1,140. For managing the risk, you may place the stop-loss at ₹1,120, which is below the 20-day EMA. For the target, you can ride the trend and take an exit when MACD signals bearish momentum.
When the price eventually climbs to ₹1,180, before the MACD crosses downward, it signals an exit.
Sell Rules: A short opportunity is generally considered when the price stays below the 20-day EMA, and the MACD forms a bearish crossover. The histogram often reflects this shift by shrinking or turning red, which suggests that buying interest has eased.
Stop-loss: A point placed slightly above the 20-day EMA is often used as a practical reference for risk assessment.
Targets: Movements are typically observed until the price approaches a support area or until the MACD begins shifting toward bullish momentum.
Example: A stock of ₹1,150 has been trading below the 20 EMA for several hours. When there is an upward movement, the price touches the EMA but fails to close above it. At the same time, MACD forms a crossover.
A possible entry point for a short position in this scenario could be around ₹1,040. The region near ₹1,060 may serve as stop-loss. The position can be observed until the MACD begins to show signs of shifting toward bullish momentum.
If the price drops to ₹995 before the histogram begins shrinking, treat it as an exit signal.
Strategy 4: MACD Divergence Reversal Strategy
A MACD divergence takes place when the price and the MACD start to move in opposite directions. It is one of the most reliable signals of trend reversal, especially when used on higher timeframes.
Bullish Divergence
A bullish divergence appears when the price forms a lower low, while the MACD creates a higher low and the histogram begins to rise. This pattern is often interpreted as a sign that selling pressure may be weakening.
- Entry: Traders usually wait for a MACD bullish crossover before considering participation.
- Stop-loss: A level beneath the recent low is commonly used as a reference for managing risk.
- Target: Many look toward the next resistance zone to gauge potential upside movement.
Bearish Divergence
A bearish divergence appears when the price makes a higher high, while the MACD forms a lower high and the histogram begins to show taller bars. This combination is often interpreted as a sign that buying strength may be fading.
- Entry: Traders generally look for a MACD bearish crossover before considering participation.
- Stop-loss: A level placed above the recent high is commonly used as a reference for managing risk.
- Target: Previous swing lows or the next support area are often observed to gauge where the price might stabilise.
Which strategy is best for intraday vs swing?
The MACD is a tool that adapts well across different timeframes. Here’s a breakdown of which MACD strategies work best depending on your trading style:
Intraday Trading
For intraday trading, we need to reduce the false signals and make fast entries that match the volatility of intraday markets. The most effective strategies that can be used for intraday trading are:
- MACD + RSI Confirmation – filters out the noise and minor fluctuations
- MACD + 20-day EMA Trend – helps keep the trade aligned with the trend
Swing Trading
Swing trading uses longer time frames that smooth out any fluctuations and make the trend reversals far more reliable. You can use these strategies for it:
- MACD Line Crossover – capturing early trend shifts
- MACD Divergence – identifying strong reversal points
These setups work beautifully on higher timeframes since trends are smoother and divergences are more reliable.
Best MACD settings for Traders (12-26-9 & custom settings)
The default MACD settings – 12, 26, 9 – are widely accepted and function effectively for different markets and timeframes. They use a 12-day EMA, a 26-day EMA, and a 9-period signal line to provide a balance of sensitivity with reliability.
Custom MACD Settings
You can also use these suggested settings based on your trading style and market volatility:
- For quicker signals (intraday)
8, 21, 5: This setting gives faster response, but it may produce false signals.
- For slower, more reliable swing trade signals
19, 39, 9: This reduces the noise and makes them reliable for higher timeframes.
Timeframes to use (5m / 15m / 1hr / Daily)
Different timeframes offer unique advantages for MACD trading:
5 min: Suitable for scalping but demands strong experience.
15 min: Most effective for intraday setups.
1 hour: Ideal for mini-swings and intraday position trades.
4 hours: Very reliable for swing trading.
Daily: This timeframe gives the most accurate and stable signals.
Conclusion
The MACD is a helpful tool for understanding the price momentum and potential trend reversals. It also helps us in determining safe entry and exit points. When it is used with indicators like RSI or EMA, it produces more accurate results. With the right MACD settings and timeframe selection, one can trade with more confidence.
FAQ‘s
It is a momentum-based trading approach using MACD crossovers, divergence, and trend strength to identify buy and sell signals. Traders use combinations like MACD + RSI or MACD + EMA to improve accuracy.
For most intraday traders, the best MACD setting is the default 12-26-9 works best. For very fast scalping, some prefer 8-21-5, but it can create noise.
Yes, MACD is good for intraday trading when it is paired with trend and momentum confirmation tools. Alone, it may produce false signals in choppy market conditions.
You buy when the MACD line crosses above the Signal line and sell when it crosses below. Confirmation from RSI or EMA improves its accuracy.
Using different timeframes gives different advantages, but typically 15 minutes is used in combination with 1 hour.
Yes, MACD can be used with RSI and EMA. Using it with RSI confirms the momentum, and using it with EMA confirms the trend direction.
MACD is highly accurate in trending markets but loses reliability in sideways markets. Using confirmation tools greatly improves its accuracy.
