Dalal Street Blogs provides information for educational purposes only and does not constitute investment advice. Please consult a SEBI-registered investment adviser before making any investment decisions.
CAUTION: Dalal Street Blogs publishes market news and educational content only. We do not promote, recommend or endorse any stock, and nothing here is a solicitation to buy or sell securities. Please consult a SEBI-registered adviser before investing.

Indian Stock Market News, Analysis and Trading Guides

Technical Analysis

MACD Indicator Best Settings for Intraday: 4 Setups Tested on Indian Stocks

Macd indicator best settings for intraday - candles on a desk

Photo: Advent, advent candles, candles by Myriams-Fotos, Pixabay Content License via Pixabay

By Dalal Street Blogs EditorialUpdated 8 min read

Go looking for the MACD indicator best settings for intraday trading and you’ll find a dozen “magic numbers” very quickly. The honest answer is that no one setting works for every stock on every day. What does exist is a set of sensible starting points, and a clear way to test which one fits your timeframe and the stocks you actually trade.

Here we go through what each MACD input does, the intraday settings commonly used on Indian stocks and indices, and how to test them without fooling yourself.

In this article
  1. A Quick Refresher: What MACD Measures
  2. What Each Setting Changes
  3. MACD Indicator Best Settings for Intraday: Common Choices
  4. Matching Settings to Your Chart Timeframe
  5. Why Faster Is Not Always Better
  6. Three Ways to Use MACD Intraday
  7. Combine MACD With Other Tools
  8. How to Test Settings Properly
  9. A Worked Example (Illustration Only)
  10. Risk Management Comes First
  11. Common Mistakes With MACD Intraday
  12. Frequently Asked Questions
  13. Key Takeaways

A Quick Refresher: What MACD Measures

MACD is short for Moving Average Convergence Divergence. Gerald Appel came up with it in the 1970s, according to Investopedia. It has three moving parts:

  • MACD line: the fast exponential moving average (EMA) minus the slow EMA.
  • Signal line: an EMA of the MACD line itself.
  • Histogram: the MACD line minus the signal line.

When the fast EMA pulls away from the slow one, momentum is building. When the two come back together, it’s fading. The histogram is where you see that shift first.

The default is 12, 26, 9: a 12-period fast EMA, a 26-period slow EMA and a 9-period signal line. Investopedia’s MACD reference has the full formula if you want it.

What Each Setting Changes

Fast EMA

A shorter fast EMA reacts more quickly to price. Drop it from 12 to, say, 5 and the MACD line turns sooner, but it also turns a lot more often.

Slow EMA

The slow EMA is your baseline. Make it longer and it smooths out more noise, at the cost of extra lag.

Signal line

The signal period decides how quickly crossovers show up. A shorter signal line gives earlier and more frequent crossovers. A longer one filters out the small wiggles.

Whichever input you touch, the trade-off is the same: speed versus noise. Faster settings catch moves early but throw up more false signals. Slower ones give fewer, cleaner signals, and you get in later.

MACD Indicator Best Settings for Intraday: Common Choices

These are the widely used starting points. Think of them as ideas to test, not answers.

1. The default: 12, 26, 9

It works on any timeframe, because the periods are counted in candles rather than days. On a 15-minute chart, 26 periods cover about 6.5 hours, which is close to one full NSE session of 6 hours 15 minutes (9:15 AM to 3:30 PM, per NSE market timings).

Best for: 15-minute and 30-minute charts, and traders who prefer fewer signals.

2. Faster: 8, 21, 5

A popular quicker version. It reacts faster to intraday swings and gives you earlier crossovers.

Best for: 5-minute charts on liquid stocks and index futures.

3. Very fast: 5, 13, 1 or 5, 13, 3

Some scalpers go very short. A signal of 1 more or less removes the signal line, so they watch the MACD line crossing zero instead.

Best for: experienced scalpers on 1-minute to 3-minute charts. Be ready for plenty of whipsaws.

4. Slower: 24, 52, 18

Doubling the default slows the whole thing down. On a 5-minute chart, it behaves roughly like 12, 26, 9 does on a 10-minute chart.

Best for: traders who want 5-minute entries but a calmer trend filter behind them.

Matching Settings to Your Chart Timeframe

It helps to think about how much clock time a setting actually covers. On a 5-minute chart, a 26-period EMA spans 130 minutes. On a 15-minute chart, the same EMA spans 390 minutes.

A practical split that a lot of traders use:

  • Trend chart (15 or 30 min): the default 12, 26, 9 to judge direction.
  • Entry chart (5 min): the faster 8, 21, 5 to time entries in that direction.

Take only those entry signals that agree with the higher-timeframe trend. That one filter cuts out a surprising number of bad trades.

Why Faster Is Not Always Better

Intraday prices in India get noisy around three windows:

  • The first 15 to 30 minutes after the 9:15 AM open, while overnight news gets priced in.
  • Around major data releases or RBI announcements.
  • The last half hour before the 3:30 PM close, when positions are being squared off.

Very fast MACD settings flip back and forth through these phases. Plenty of traders simply ignore fresh MACD signals in the opening minutes, or wait for the first 15-minute candle to close.

Keep in mind too that EMAs carry over from the previous day. An overnight gap can skew the first few readings of the session.

Three Ways to Use MACD Intraday

1. Signal-line crossovers

The buy-side setup is the MACD line crossing above the signal line; the sell-side setup is a cross below. It’s the most common way to use MACD and also the noisiest, so filter it with the higher-timeframe trend.

2. Zero-line crossovers

When the MACD line crosses above zero, the fast EMA has moved above the slow EMA. It comes later than a signal crossover, but it’s the more reliable trend confirmation.

3. Histogram momentum

Shrinking histogram bars tell you momentum is fading before any crossover happens. Some traders treat the first shrinking bar as an early cue to tighten their stops.

Combine MACD With Other Tools

MACD is a momentum tool built out of moving averages, so it lags price. It works better next to tools that measure something else.

  • RSI: shows overbought and oversold zones. Our guide on reading RSI on Nifty stocks explains how.
  • VWAP: many intraday traders take long MACD signals only above VWAP, and short signals only below it.
  • Support and resistance: a MACD crossover near a key level means more than one in the middle of a range.
  • Volume: crossovers on rising volume tend to hold up better.

MACD divergence works the same way as RSI divergence. If price makes a new high while MACD makes a lower high, momentum is weakening. Our piece on RSI divergence explains how to confirm these signals.

How to Test Settings Properly

The only way to find your own best setting is to test it on the stocks and timeframe you really trade.

  1. Pick one instrument and one timeframe. Nifty futures on a 5-minute chart is a common pick because it’s so liquid.
  2. Write the rules down. Exactly when you enter, where the stop sits, and when you get out.
  3. Test at least 50 to 100 trades across both trending and choppy days. A dozen trades proves nothing.
  4. Record win rate, average win, average loss and maximum drawdown. Win rate on its own will mislead you.
  5. Include costs. Brokerage, STT, exchange fees and slippage pile up fast when you trade intraday often.
  6. Check on fresh data. Tune your settings on one period, then test them on a different period you didn’t use for tuning.

Watch out for over-optimisation. Try 200 combinations and one of them will look brilliant on past data by pure luck. A setting that does reasonably well across many stocks beats one that is perfect on a single chart.

A Worked Example (Illustration Only)

Say you trade a liquid large-cap stock on a 5-minute chart with 8, 21, 5, and use 12, 26, 9 on the 15-minute chart as your trend filter.

  • At 10:30 AM, the 15-minute MACD is above zero and rising. Trend filter: bullish.
  • The 5-minute chart dips, and the MACD histogram turns negative.
  • At 10:50 AM, the 5-minute MACD line crosses back above its signal line, with price above VWAP.
  • You enter, with a stop below the recent swing low.
  • You exit when the 5-minute histogram shrinks for two bars in a row or when your target is hit, whichever comes first.

Treat this as a framework, not a recommendation. The actual numbers you’d use depend on the stock’s volatility and how much you’re willing to risk per trade.

Risk Management Comes First

No MACD setting will rescue poor risk control. Decide the most you’ll lose on a trade before you enter, and size the position from there. Our pillar on risk management in trading covers position sizing and stops step by step.

SEBI’s September 2024 study of equity F&O traders found that about 93% of individual traders made net losses between FY22 and FY24. Intraday trading carries similar risks. Keep your size small while you’re learning.

Common Mistakes With MACD Intraday

  • Changing the settings after every losing trade.
  • Trading every crossover, whatever the trend.
  • Ignoring lag: MACD confirms moves, it doesn’t predict them.
  • Using illiquid stocks, where a handful of trades can distort the indicator.
  • Leaving transaction costs out of your testing.

Frequently Asked Questions

What is the best MACD setting for a 5-minute chart?

Many traders start with 8, 21, 5 or the default 12, 26, 9. Test both on your own stocks; the faster one gives earlier signals, but noisier ones.

Is 12, 26, 9 good for intraday?

Yes, particularly on 15-minute charts. It was built for daily charts, but since periods are counted in candles it adapts to any timeframe.

Should I use MACD alone for intraday trades?

No. MACD lags price. Use it with a trend filter, a level like VWAP or support, and a fixed stop loss.

Does MACD work on Bank Nifty?

It can, but Bank Nifty is more volatile than the Nifty 50. Traders often run slightly slower settings or wider stops on it to avoid getting whipsawed.

How often should I change my settings?

Rarely. Pick one, test it over a lot of trades, and change it only if a fresh test on new data shows a clear and lasting improvement.

Key Takeaways

The default 12, 26, 9 is a solid place to start on 15-minute charts. Faster settings like 8, 21, 5 suit 5-minute charts, but they bring more false signals with them.

In the end, the best MACD indicator settings for intraday trading are the ones you’ve tested on your own instruments, filtered through a higher-timeframe trend and backed by firm risk rules.

For the bigger picture, see our technical analysis for Indian stocks guide. This article is for education only and is not investment advice.

Leave a Reply

Join the conversation

Commenting is open to registered readers. Sign up with just your email — no password needed, and it takes under a minute.

Sign up to comment Log in