Intraday parameter research

Best MACD Settings for Day Trading

Short answer

MACD 12, 26, 9 is the best control for day-trading research because platforms document it and the result is easy to reproduce. Compare it with a faster 8, 21, 5 or 5, 13, 5 setup on the exact symbol and timeframe you trade. Faster values react sooner but usually create more crossovers, turnover, and false signals.

Settings worth testing

These values are controls for a test. Keep the symbol, session, costs, entry rule, and exit rule fixed while you compare them.

MACD settings and testing tradeoffs
SettingUse caseTradeoffTest note
12, 26, 9Documented control for 15-minute, 30-minute, or hourly trend confirmation.It can react after much of a short intraday move has already occurred.Save this result before testing faster lengths. It is the comparison baseline.
8, 21, 5Faster momentum test for liquid stocks and index ETFs on 5-minute or 15-minute charts.More responsive values can increase false turns during quiet or sideways sessions.Keep the trend filter and exit fixed while comparing with 12, 26, 9.
5, 13, 5Shorter intraday hold periods where a quicker signal is part of the written rule.A short fast and slow pair can follow minor price changes and raise trading costs.Measure average trade after spread, commission, and slippage.
3, 10, 3Aggressive lower-timeframe research, not a default recommendation.Signal frequency can be high enough for costs and whipsaws to dominate.Require bar-close confirmation and compare results by session.

Presets with a stated purpose

15-minute control

MACD 12, 26, 9

Use a 50 bar EMA trend filter and accept a signal-line cross only after the candle closes.

This setup values smoother confirmation over early entry.

15-minute faster test

MACD 8, 21, 5

Keep the same trend filter, stop, exit, dates, and position size as the control.

A higher trade count is not evidence of a better strategy.

5-minute responsive test

MACD 5, 13, 5

Restrict entries to liquid market hours and include a minimum relative-volume condition only in a separate test.

Do not combine a new MACD setting and a new filter in the same first comparison.

Default MACD as direction only

MACD 12, 26, 9 above or below zero

Use MACD as a directional state while a separate price rule times the entry.

This is a different strategy from trading each signal-line crossover.

The timeframe changes what each length means

A 12 bar fast average spans one hour on a 5-minute chart and three hours on a 15-minute chart. The same MACD numbers therefore describe different windows of market activity.

Write the symbol, timeframe, session, and expected holding period before choosing parameters. A setup for an SPY 15-minute trend trade should not be copied into a one-minute NVDA scalp without a new test.

Costs can reverse a lower-timeframe result

Faster MACD settings usually create more signals. More signals mean more spread crossings, commissions, slippage, and exposure to partial fills. A gross-profit result can disappear after those costs are modeled.

Use the same cost assumptions for every parameter set. Report average trade and turnover beside net profit so a busy strategy does not look better only because it traded more often.

  • Count signals by market session.
  • Model a worse fill than the candle close.
  • Reject settings that rely on one unusually strong day.

A small parameter search is easier to audit

Start with three or four documented settings instead of hundreds of combinations. Pick the control, one moderate alternative, and one fast alternative. Hold the rest of the strategy constant.

After a useful range appears, test nearby values on untouched dates. If the result changes sharply when one length moves by a single bar, the parameter choice is fragile.

Test templates

These examples define a research process. They are not trade calls or evidence that a setup will make money.

SPY

15m

Rule to test

Compare MACD 12, 26, 9 with 8, 21, 5. Enter long on a bullish cross only when price is above a rising 50 bar EMA. Exit on the bearish cross.

Validation

Keep the final 30 percent of dates untouched. Include commission and slippage, then compare drawdown, average trade, and turnover.

QQQ

5m

Rule to test

Compare MACD 12, 26, 9 with 5, 13, 5 during regular US market hours. Use the same two ATR stop and end-of-day exit.

Validation

Split results by morning and afternoon. Check whether the faster rule adds trades that remain positive after costs.

NVDA

15m

Rule to test

Use MACD above zero as a long-only state, then enter on a close above the prior bar high. Test 12, 26, 9 and 8, 21, 5.

Validation

Compare with the crossover strategy as a separate test. Do not mix state and crossover entries in one result.

Checks I use before accepting a result

I write the session and holding period before I choose a MACD setting. The number has no useful context without the chart interval.

When I compare 12, 26, 9 with 8, 21, 5, I keep the stop, exit, costs, and position size unchanged.

I reject a faster setting when its average trade cannot cover a conservative fill assumption. More signals do not make that problem smaller.

Turn the idea into an inspectable Pine Script rule

Pineify can turn each MACD length into an input, add the session and trend filter, and generate a TradingView strategy you can inspect. The Strategy Optimizer can compare the same rule across a small parameter range after the baseline is saved.

Build a day-trading MACD test

Frequently asked questions

Sources and limits

Source review completed 2026-07-26.

This page is an information and strategy-testing tool, not investment advice. MACD settings are research starting points, not trade recommendations or promises of returns. Backtests and paper trades are hypothetical and do not predict future performance. Day trading can result in rapid loss.