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.
Intraday parameter research
Short answer
MACD 12, 26, 9 is a documented 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. Shorter lengths increase the weight on recent inputs. Earlier crossings and higher trade counts are possible, but neither follows for every price sequence.
These values are controls for a test. Keep the symbol, session, costs, entry rule, and exit rule fixed while you compare them.
| Setting | Use case | Tradeoff | Test note |
|---|---|---|---|
| 12, 26, 9 | Documented 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, 5 | Faster 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, 5 | Shorter 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, 3 | Aggressive 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. |
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.
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.
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.
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.
Twelve bars correspond nominally to one hour of five-minute bars or three hours of fifteen-minute bars. An EMA retains decaying weight from older bars rather than cutting off at bar 12. Session gaps can also make elapsed clock time longer.
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.
If shorter settings produce more executed trades, costs may increase through additional spread crossings, commissions and slippage. 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.
Start with a few explicitly recorded candidates instead of hundreds of combinations. Only 12, 26, 9 is cited here as the platform default; the alternatives are illustrative research choices. Pick the control, one moderate alternative, and one fast alternative. Hold the rest of the strategy constant.
After a useful range appears, inspect nearby values in the development sample, then evaluate the selected rule on untouched dates. If the result changes sharply when one length moves by a single bar, the parameter choice is fragile.
These examples define a research process. They are not trade calls or evidence that a setup will make money.
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.
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.
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.
Write the session and holding period before choosing a MACD setting. The numbers have no useful context without the chart interval.
Keep the stop, exit, costs, and position size unchanged when comparing 12, 26, 9 with 8, 21, 5.
Compare net average trade under plausible fill assumptions. Keep gross and net values distinct so costs are not counted twice.
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 browser extension runs parameter comparisons inside TradingView and requires an eligible Advanced-or-higher Pineify plan. Keep the selected baseline and review the generated strategy before optimizing.
Build a day-trading MACD testTest MACD reaction speed on five-minute charts without hiding session, turnover, or execution costs.
Compare faster MACD settings with explicit timeframe, session, fill, and cost assumptions.
Compare MACD parameter starting points for swing trading, then test them with explicit costs, dates, and holdout data.
Compute Moving Average Convergence Divergence values to identify trend direction and momentum.
Read MACD crossover definitions, Pine Script examples and backtest interpretation on TradingView.
MACD 12, 26, 9 is a reproducible starting point, while 8, 21, 5 and 5, 13, 5 are faster alternatives to test. No setting is best for every symbol, timeframe, session, and cost level.
MACD 5, 13, 5 is a reasonable faster test, not a guaranteed improvement. It gives recent inputs more weight, but crossover timing depends on the price sequence and signal average.
Crossovers and zero-line states are different rules. A crossover times a momentum change, while the zero line can act as a directional filter for another entry trigger.
A parameter search does not prove future predictive accuracy. AI can help express and compare rules, but historical selection can overfit and needs a separate evaluation sample.
No. This page is an information and strategy-testing resource, not personalized investment advice or a recommendation to trade.
Source review completed 2026-08-07.
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.