Most traders add MACD to their chart and never touch the numbers. The same 12-26-9 ends up on a 1-minute crypto chart and a weekly stock chart. Others search for the best MACD settings, copy a “secret” combination from a video, and switch again after two losing trades.
The honest answer: there is no single best MACD setting. A faster setting gives earlier signals and more false ones. A slower setting gives cleaner signals that arrive later. You are always choosing a trade-off.
This guide gives you sensible starting points for each trading style, shows three popular settings on the same real chart, and explains how to test a setting yourself before you trust it.
New to MACD? Read our MACD indicator guide first. It explains the formula with a worked example.
Best MACD settings by trading style
These are starting points to test, not proven best values.
| Trading style | Chart timeframe | MACD setting | What to expect |
|---|---|---|---|
| Scalping | 1–5 minutes | 5-35-5 or 3-10-16 | Very fast; many crosses; a lot of noise |
| Day trading | 5–15 minutes | 8-17-9 or 12-26-9 | Faster than default with 8-17-9; cleaner with 12-26-9 |
| Swing trading | 1 hour – daily | 12-26-9 | The default; balanced speed and noise |
| Positional | Daily – weekly | 12-26-9 (or slower, such as 24-52-18) | Few signals; shows the big swings only |
Default (TradingView and most platforms): fast length 12, slow length 26, signal length 9, source close.
The three MACD settings you can change
MACD has three numbers, written as fast-slow-signal:
- Fast length (12): the period of the fast exponential moving average (EMA). An EMA is an average that gives more weight to recent prices.
- Slow length (26): the period of the slow EMA. MACD line = fast EMA − slow EMA.
- Signal length (9): the period of the EMA that smooths the MACD line into the signal line. The histogram is the gap between the two lines.
On TradingView’s built-in MACD, these are the Fast length, Slow length and Signal length inputs. You can also change the Source (usually the close), and two averaging options: Oscillator MA type (for the MACD line) and Signal MA type (for the signal line), each EMA or SMA (simple moving average). Keep both on EMA unless you are copying a method that uses SMAs, such as the 3/10 oscillator below.
| Change | Effect on MACD |
|---|---|
| Fast length ↓ | Reacts faster to new prices; more crosses |
| Slow length ↑ | Bigger gap between the two EMAs; larger MACD values, smoother trend reading |
| Signal length ↓ | Signal line hugs the MACD line; crosses come earlier and more often |
| Signal length ↑ | Fewer, later crosses |
Why the numbers change the speed
An EMA gives the newest bar a weight of 2 ÷ (length + 1):
| Length | Weight of the newest bar |
|---|---|
| 5 | 2 ÷ 6 = 33.3% |
| 8 | 2 ÷ 9 = 22.2% |
| 9 | 2 ÷ 10 = 20.0% |
| 12 | 2 ÷ 13 = 15.4% |
| 17 | 2 ÷ 18 = 11.1% |
| 26 | 2 ÷ 27 = 7.4% |
| 35 | 2 ÷ 36 = 5.6% |
So the fast EMA of a 5-35-5 MACD reacts to a new price about twice as strongly as the fast EMA of 12-26-9 (33.3% vs 15.4%). Its signal line also reacts faster (33.3% vs 20.0%). That is why it crosses earlier, and more often.

One more thing to know: MACD values are in price units, and a wider fast-slow gap gives bigger numbers. On our chart below, 12-26-9 stayed between about −21 and +24, while 5-35-5 ranged from about −45 to +56 on the same stock. So you can’t compare MACD values between settings, or between markets.
Where 12-26-9 came from
MACD was created by Gerald Appel in the late 1970s. He did not intend one setting for everything. Appel originally suggested a faster combination for buy signals (8-17-9) and a slower one for sell signals (12-25-9), as described in John Murphy’s Technical Analysis of the Financial Markets (1999). Over time, most platforms settled on 12-26-9 as a single default.
Two other combinations you will see often:
- 5-35-5: a fast combination popular with short-term traders. We could not find a reliable original source for it, so treat it simply as “a common fast setting”.
- 3-10-16: this comes from trader Linda Bradford Raschke’s 3/10 oscillator. Her version uses simple moving averages (a 3-period SMA minus a 10-period SMA, with a 16-period SMA as the second line). If you type 3-10-16 into a normal EMA-based MACD, you get a different, faster line, not her oscillator.
Three popular MACD settings compared on one chart
We added MACD three times to the same HDFC Bank daily chart (December 2024 to September 2025): 12-26-9, 8-17-9 and 5-35-5. The candles are identical; only the settings change.

What the chart shows:
- At the January low (about ₹812): the bullish cross (MACD line above the signal line) came first on 5-35-5, then 8-17-9 about one bar later, and last on 12-26-9, about 3 trading days later than the fastest.
- After the April high (about ₹990): the bearish cross again came first on the faster settings. The default 12-26-9 crossed about 5 trading days later than 5-35-5.
- During the early-April dip: all three crossed down and then back up on the same day in mid-April. 5-35-5 crossed down first, so it pointed the wrong way for about 8 trading days; 12-26-9 for about 4.
- Over the whole period: we counted roughly 19 signal-line crosses on 12-26-9, 21 on 8-17-9 and 23 on 5-35-5. Faster settings gave more signals, and most of the extra ones came in sideways stretches: February–March, and July–August, when price moved between about ₹945 and ₹1,020.
| 5-35-5 | 8-17-9 | 12-26-9 (default) | |
|---|---|---|---|
| Speed | Fastest | Fast | Medium |
| Crosses on our chart | ~23 | ~21 | ~19 |
| Bullish cross at the January low | First | ~1 bar later | ~3 bars later |
| Noise in the range | Highest | Medium | Lowest |
| Good for | Scalping, very short-term timing | Day trading | Swing trading, the default reference |
These counts come from one stock and one period. They show the trade-off clearly, but they are not a result you should expect on every chart.
MACD settings by timeframe
Scalping (1–5 minute charts)
- Start with: 5-35-5, or 3-10-16 (for Raschke’s version on TradingView, set Oscillator MA type and Signal MA type to SMA).
- What works: taking crosses only in the direction of the 15-minute or 1-hour trend, and using MACD for timing, not direction.
- Common mistake: trading every cross. On a 1-minute chart, a fast MACD crosses many times an hour. Most of those crosses are noise, and each trade pays spread and commission.
Day trading (5–15 minute charts)
- Start with: 8-17-9 for earlier signals, or 12-26-9 for fewer.
- What works: the zero line as a bias filter. Above zero, look only for bullish crosses; below zero, only bearish ones.
- Common mistake: acting on crosses in the first minutes after the open. Opening candles are large and can create crosses that reverse quickly.
Swing trading (1-hour to daily charts)
- Start with: the default 12-26-9.
- What works: crosses in the direction of the bigger trend, such as above a rising 200 EMA, and histogram turns during pullbacks.
- Common mistake: switching to a faster setting to get “earlier” entries. On these timeframes, the extra signals are mostly in ranges.
Positional trading (daily to weekly charts)
- Start with: 12-26-9 on the weekly chart, or a slower setting such as 24-52-18 on the daily chart.
- What works: reading the big picture: which side of zero MACD is on, and whether momentum is growing or fading.
- Common mistake: expecting precise timing. Weekly crosses arrive weeks after a turn.
A useful rule: doubling all three numbers (12-26-9 → 24-52-18) gives roughly the same line as the default on a timeframe twice as long. 24-52-18 on a 15-minute chart behaves roughly like 12-26-9 on a 30-minute chart. If you want a “slower” MACD, you can either double the numbers or move up one timeframe.
MACD settings by market
| Market | What’s different | Settings tip |
|---|---|---|
| Crypto | Trades 24/7; often more volatile | Fast settings give very many crosses; many traders keep 12-26-9 and filter with the higher-timeframe trend |
| Forex | Liquid; quiet in Asian hours, active in the London and New York sessions | Crosses in the quiet hours are less reliable; focus on the active sessions |
| Stocks and indices | Gaps between sessions | A gap can push MACD far in one bar; let the first bars settle |
| Indian index F&O | Big moves in the first 15 minutes and around expiry | Avoid acting on MACD crosses in the opening minutes |
Trader’s notes
A setting is only one part of a trade. A few practical points matter more than the exact numbers:
- Wait for the bar to close. On the live bar, the MACD and signal lines move with every tick. A cross that appears during the bar can disappear before it closes. Act only on closed bars.
- Higher-timeframe MACD on a lower chart? TradingView’s MACD has a Timeframe input. If you show, say, a 1-hour MACD on a 15-minute chart, keep “Wait for timeframe closes” ticked. Otherwise the higher-timeframe values can change until that hour closes, which makes past signals look cleaner than they were (see What Is Repainting?).
- Costs grow with speed. Fast settings on 1–5 minute charts give many trades with small stops. Spread, commission and slippage (getting filled at a worse price than planned) can take a large share of each small stop, so include them when you test.
- Use the zero line as a trend filter. MACD above zero means the fast EMA is above the slow EMA. Taking only bullish crosses above zero (and bearish crosses below zero) removes many counter-trend signals.
- News beats settings. Central-bank decisions, inflation data and company results can move price through any signal. No setting protects you from that.
- One momentum tool is enough. MACD, RSI and Stochastic all measure momentum from the same prices, so three of them agreeing is one message counted three times. See How Many Indicators Should You Use?
- Size every trade from your stop. Decide the stop first, then the position size. Our Position Size Calculator does the maths. Losing streaks are normal for any rule-based method, so the risk per trade must be small enough to survive them.
How to test MACD settings yourself (5 steps)
TradingView’s Bar Replay lets you replay past price action bar by bar (available features depend on your plan).
- Pick one market and one timeframe. For example, EUR/USD on the 15-minute chart.
- Add MACD twice: the default 12-26-9 and the setting you want to try.
- Replay and record every cross. Note the date, the direction, and what price did next: did it move at least as far as your stop distance before hitting the stop?
- Compare the two settings on the same period. Count the crosses and how many reversed quickly.
- Re-test on a different market and period. A setting that only looks good on one chart is probably “curve-fitted”: tuned to past data that won’t repeat.
Keep a simple spreadsheet: date, setting, signal, what happened. After 50–100 signals, you will know more about your market than any “best settings” list can tell you, including this one.
Common MACD settings mistakes
- Looking for a perfect setting. No setting removes losing trades. Trend, volatility and news matter more than the numbers.
- Making MACD faster to get earlier signals. Earlier signals also mean more false ones. Our chart showed both.
- Copying 3-10-16 into an EMA MACD and calling it Raschke’s oscillator. Her version uses simple moving averages.
- Comparing MACD values between settings or markets. MACD is in price units, so the numbers are not comparable.
- Stacking MACD with RSI and Stochastic. They mostly agree because they use the same prices. Pair MACD with a different job instead, such as a trend filter (200 EMA) or volatility (ATR).
Best MACD settings: FAQ
What are the best MACD settings for a 5-minute chart?
A common starting point is 8-17-9, or the default 12-26-9 if you want fewer signals. Take crosses only in the direction of the 15-minute or 1-hour trend, and test both settings on your own market.
What are the best MACD settings for a 15-minute chart?
The default 12-26-9 is a sensible starting point on 15-minute charts. Use the zero line as a bias filter: bullish crosses above zero, bearish crosses below.
What are the best MACD settings for scalping?
For 1–5 minute charts, many traders start with 5-35-5 or 3-10-16. Expect many crosses, so use a higher-timeframe trend filter. Spread and commission can be a large part of a small stop, so include costs when you test.
What are the best MACD settings for day trading?
8-17-9 gives earlier signals than the default and is popular for day trading on 5–15 minute charts. 12-26-9 is slower but cleaner. Test both and keep the one whose signals you can follow consistently.
Is 12 26 9 the best MACD setting?
It is the standard default and a balanced starting point, but not the best for every market or timeframe. Its creator, Gerald Appel, originally used different settings for buying and selling. Treat 12-26-9 as the baseline you compare other settings against.
What are the best MACD settings for crypto?
Crypto trades 24/7 and is often volatile, so fast settings cross very often. Many traders keep 12-26-9 and filter signals with the higher-timeframe trend, or use 24-52-18 on short timeframes for a smoother line.
Keep Learning
- MACD Indicator: the formula, histogram and three strategies
- MACD 200 EMA Strategy: a popular MACD strategy, tested in Bar Replay
- Best RSI Settings: the same approach for RSI
- Momentum Indicators: all our momentum guides in one place
Get new guides first: free Repaint Checklist and newsletter.
How we checked this guide
- Method: MACD 12-26-9, 8-17-9 and 5-35-5 compared on the same data; EMA weights verified in code
- Chart: Real TradingView data, HDFC Bank daily, at least 30 days old
- Repainting: Does not repaint on closed bars (the live bar can still cross and uncross)
Risk disclaimer: This article is for educational purposes only and is not investment advice. The settings above are starting points for your own testing, not recommendations. The chart example uses past data and does not predict future results. Trading in stocks, derivatives, forex and crypto involves a substantial risk of loss and is not suitable for everyone. Consider speaking to a SEBI-registered investment adviser (or a licensed adviser in your country) before making trading decisions. See our full Disclaimer.