MACD Calculation: Close vs. Adjusted Close – Do We Use Close or Adjusted Close to Calculate MACD?


MACD Calculation: Do We Use Close or Adjusted Close to Calculate MACD?

Explore the critical distinction between using raw Close prices versus Adjusted Close prices when calculating the Moving Average Convergence Divergence (MACD) indicator. Our interactive calculator simulates price series, including the impact of dividends and stock splits, to demonstrate how each approach affects MACD values and subsequent trading signals. Understand why this choice is vital for accurate technical analysis.

MACD Calculation Impact Simulator

This calculator simulates a price series to show the difference in MACD values when using Close Price versus Adjusted Close Price, accounting for a hypothetical dividend/split adjustment.



Starting price for the Close series.


Starting price for the Adjusted Close series. This often reflects historical adjustments.


Average percentage change per day for the Close price series.


Average percentage change per day for the Adjusted Close price series.


Number of periods for the faster Exponential Moving Average (EMA).


Number of periods for the slower Exponential Moving Average (EMA).


Number of periods for the EMA of the MACD line itself.


The length of the simulated price history. More points show longer trends.


Calculation Results

Difference in Final MACD (Close vs. Adjusted Close):

0.00

Final MACD (Using Close Price):
0.00
Final MACD (Using Adjusted Close Price):
0.00
Final Signal Line (Using Close Price):
0.00
Final Signal Line (Using Adjusted Close Price):
0.00
Final Short EMA (Close Price):
0.00
Final Long EMA (Close Price):
0.00
Final Short EMA (Adjusted Close Price):
0.00
Final Long EMA (Adjusted Close Price):
0.00

Formula Explanation: The calculator first generates two simulated price series (Close and Adjusted Close) based on initial values and daily percentage changes. It then calculates the Exponential Moving Averages (EMAs) for both the short-term and long-term periods for each series. The MACD line is derived by subtracting the long-term EMA from the short-term EMA. Finally, a Signal Line is calculated as an EMA of the MACD line. The key difference highlighted is how the initial price and subsequent adjustments (simulated here by different starting points) propagate through these calculations, leading to potentially different MACD and Signal Line values.

Comparison of MACD (Close) vs. MACD (Adjusted Close) Over Time


Simulated MACD Data (Last 10 Periods)
Period Close Price Adj. Close Price MACD (Close) MACD (Adj. Close) Signal (Close) Signal (Adj. Close)

What is the Debate: Do We Use Close or Adjusted Close to Calculate MACD?

The question of whether to use the raw Close price or the Adjusted Close price when calculating the Moving Average Convergence Divergence (MACD) indicator is a fundamental one in technical analysis, particularly for long-term studies. The MACD is a momentum indicator that shows the relationship between two exponential moving averages (EMAs) of a security’s price. It is calculated by subtracting the 26-period EMA from the 12-period EMA. A 9-period EMA of the MACD line, known as the “signal line,” is then plotted on top of the MACD line, functioning as a trigger for buy and sell signals.

The core of the debate lies in how corporate actions like stock splits, dividends, and spin-offs affect historical price data. The Close price is simply the last trading price of a security on a given day. It reflects the actual transaction price. The Adjusted Close price, however, modifies historical close prices to account for these corporate actions. For instance, if a stock splits 2-for-1, the adjusted close price for all prior days would be halved to make the historical data comparable to the post-split price. Similarly, cash dividends typically result in a downward adjustment of the prior day’s close price to reflect the value leaving the company.

Who Should Care About Close vs. Adjusted Close for MACD?

  • Long-term Investors and Analysts: For those analyzing trends over months or years, using adjusted close prices is crucial. Unadjusted data can create artificial gaps or jumps in price charts, leading to distorted moving averages and misleading MACD signals.
  • Quantitative Analysts and Algorithmic Traders: Backtesting trading strategies that rely on MACD requires accurate historical data. Using unadjusted data can lead to false positives or negatives in backtests, rendering the strategy ineffective in live trading.
  • Dividend Investors: Investors focused on dividend-paying stocks must understand that dividends impact adjusted close prices, which in turn affects MACD calculations. Ignoring this can lead to misinterpretations of momentum.
  • Anyone Using Historical Data: Any analysis involving historical price comparisons or indicators derived from historical prices should ideally use adjusted close data to ensure consistency and accuracy.

Common Misconceptions About MACD and Price Data

  • “Close price is always sufficient”: While close price is fine for very short-term, intra-day analysis where corporate actions are irrelevant, it’s highly problematic for anything longer.
  • “Adjusted close only matters for splits”: Many believe only splits significantly alter historical data. However, regular cash dividends, especially for high-yield stocks, accumulate over time and can create substantial discrepancies in long-term charts and indicators.
  • “My charting platform handles it automatically”: While most reputable charting platforms default to adjusted close for historical views, it’s essential to verify this setting, especially when exporting data or using custom scripts. Always confirm the data source.
  • “MACD is robust enough to handle minor discrepancies”: While MACD is a lagging indicator, significant distortions from unadjusted data can lead to false crossovers, incorrect divergence signals, and ultimately, poor trading decisions. The question of “do we use close or adjusted close to calculate MACD” directly impacts signal reliability.

MACD Calculation: Close vs. Adjusted Close Formula and Mathematical Explanation

The calculation of MACD itself remains consistent, regardless of whether you use Close or Adjusted Close prices. The difference lies solely in the input price series. The MACD is derived from Exponential Moving Averages (EMAs), which give more weight to recent prices. This sensitivity to recent data means that any historical adjustment in the price series will propagate through the EMA calculations, and consequently, through the MACD and Signal Line.

Step-by-Step Derivation of MACD

  1. Choose Your Price Series: Decide whether to use the raw Close Price or the Adjusted Close Price. This is the fundamental choice addressed by “do we use close or adjusted close to calculate MACD”.
  2. Calculate the Short-term EMA: Typically, a 12-period EMA of the chosen price series.

    EMA12 = (Pricetoday * Multiplier12) + (EMAyesterday * (1 - Multiplier12))

    Where Multiplier12 = 2 / (12 + 1) = 0.1538
  3. Calculate the Long-term EMA: Typically, a 26-period EMA of the chosen price series.

    EMA26 = (Pricetoday * Multiplier26) + (EMAyesterday * (1 - Multiplier26))

    Where Multiplier26 = 2 / (26 + 1) = 0.0741
  4. Calculate the MACD Line: Subtract the long-term EMA from the short-term EMA.

    MACD Line = EMA12 - EMA26
  5. Calculate the Signal Line: Typically, a 9-period EMA of the MACD Line.

    Signal Line = (MACD Linetoday * Multiplier9) + (Signal Lineyesterday * (1 - Multiplier9))

    Where Multiplier9 = 2 / (9 + 1) = 0.20
  6. Calculate the MACD Histogram: The difference between the MACD Line and the Signal Line.

    MACD Histogram = MACD Line - Signal Line

The impact of using Adjusted Close prices becomes evident in steps 2 and 3. If the historical prices used to calculate EMAyesterday are different due to adjustments, then the current EMAtoday will also be different, leading to a different MACD Line and subsequently a different Signal Line and Histogram.

Variable Explanations and Typical Ranges

Key Variables in MACD Calculation
Variable Meaning Unit Typical Range
Close Price The last traded price of a security for the day. Currency ($) Varies widely by asset
Adjusted Close Price The close price adjusted for dividends, splits, and other corporate actions. Currency ($) Varies widely by asset
Short-term EMA Period Number of periods for the faster EMA (e.g., 12 days). Periods (days/weeks/months) Typically 12
Long-term EMA Period Number of periods for the slower EMA (e.g., 26 days). Periods (days/weeks/months) Typically 26
Signal Line Period Number of periods for the EMA of the MACD line (e.g., 9 days). Periods (days/weeks/months) Typically 9
Multiplier Smoothing factor for EMA calculation: 2 / (Period + 1). Dimensionless 0 to 1
MACD Line Difference between Short-term EMA and Long-term EMA. Currency ($) Varies, often centered around zero
Signal Line EMA of the MACD Line. Currency ($) Varies, often centered around zero

Practical Examples: Do We Use Close or Adjusted Close to Calculate MACD?

Understanding the theoretical difference is one thing; seeing its practical impact is another. These examples illustrate why the choice of price data is crucial for accurate MACD analysis.

Example 1: Impact of a Stock Split

Imagine a stock trading at $100. Historically, 50 days ago, it was trading at $50. Then, 25 days ago, it underwent a 2-for-1 stock split. If you use raw Close prices, your historical data would show a sudden drop from $100 to $50 on the split date, even though the investor’s total value remained the same. This artificial drop would severely distort your EMAs and MACD.

  • Using Raw Close Price: The 12-period and 26-period EMAs would sharply decline around the split date, creating a false bearish MACD crossover. A trader relying on this might mistakenly sell.
  • Using Adjusted Close Price: All historical prices before the split would be halved. So, the $50 price 50 days ago would become $25 (adjusted), and the $100 price before the split would become $50 (adjusted). This creates a continuous, smooth price series, allowing EMAs and MACD to reflect true price momentum without artificial distortions. The MACD would show the actual trend, unaffected by the split.

Interpretation: For accurate trend analysis and MACD signals, especially across periods with corporate actions, the Adjusted Close price is indispensable. The question “do we use close or adjusted close to calculate MACD” is definitively answered in favor of adjusted close here.

Example 2: Impact of Regular Dividends

Consider a mature, dividend-paying company. Its stock price might appear relatively stable using raw Close prices. However, if it pays a consistent $1.00 quarterly dividend, over several years, these dividends accumulate. The Adjusted Close price accounts for these payouts by reducing prior day’s prices by the dividend amount.

  • Using Raw Close Price: The MACD might show a flat or slightly upward trend, as the raw close price doesn’t reflect the value distributed to shareholders. Each ex-dividend date might show a small, consistent dip, but the overall historical context is lost.
  • Using Adjusted Close Price: The Adjusted Close price series would show a slightly lower historical price trend compared to the raw close, especially over long periods. This means the EMAs would be slightly lower, and consequently, the MACD line would also be slightly lower. While the shape of the MACD might be similar, its absolute values and the timing of crossovers could be subtly but significantly different, reflecting the true total return performance of the stock.

Interpretation: Even seemingly small, regular dividends can cumulatively impact MACD calculations over time. For investors who reinvest dividends or consider total return, using Adjusted Close provides a more accurate representation of price momentum, answering the “do we use close or adjusted close to calculate MACD” question with a preference for adjusted data.

How to Use This MACD Calculation Impact Calculator

This calculator is designed to illustrate the practical differences when you ask, “do we use close or adjusted close to calculate MACD?” by simulating price data and showing the resulting MACD values.

Step-by-Step Instructions:

  1. Set Initial Close Price: Enter the starting price for your raw Close price series.
  2. Set Initial Adjusted Close Price: Enter the starting price for your Adjusted Close price series. This value should typically be lower than the Initial Close Price if you’re simulating a scenario where historical prices were adjusted downwards due to past dividends or splits.
  3. Define Daily Price Changes: Input the average daily percentage change for both the Close and Adjusted Close series. You can set these to be the same to see the impact of just the initial difference, or make them slightly different to simulate varying momentum.
  4. Specify EMA and Signal Periods: Use the standard MACD settings (12, 26, 9) or experiment with different periods to see their effect.
  5. Choose Number of Data Points: Select how many days of price data you want to simulate. A higher number will show longer trends and the cumulative effect of the price differences.
  6. Click “Calculate MACD Impact”: The calculator will instantly generate the results, update the chart, and populate the data table.

How to Read the Results:

  • “Difference in Final MACD (Close vs. Adjusted Close)”: This is the primary highlighted result. It quantifies the absolute difference between the MACD value calculated using raw Close prices and the MACD value calculated using Adjusted Close prices at the end of the simulated period. A larger difference indicates a more significant impact from using one data type over the other.
  • Intermediate Results: These show the final values for the MACD line, Signal line, Short EMA, and Long EMA for both Close and Adjusted Close series. Compare these values to understand how each component of the MACD is affected.
  • Chart: The chart visually compares the MACD (Close) and MACD (Adjusted Close) lines over the simulated period. Look for divergences or crossovers that occur at different times or with different magnitudes, which would lead to different trading signals.
  • Data Table: The table provides a detailed view of the last 10 simulated periods, showing the actual prices, MACD, and Signal Line values for both data types. This allows for a granular comparison.

Decision-Making Guidance:

By observing the differences, you can make an informed decision on “do we use close or adjusted close to calculate MACD” for your specific analysis. If the differences are negligible for your chosen asset and timeframe, raw Close might suffice. However, for most long-term technical analysis, especially with dividend-paying stocks or those with a history of splits, the Adjusted Close price provides a more accurate and reliable basis for MACD signals. Always prioritize data that reflects the true historical performance and avoids artificial distortions.

Key Factors That Affect MACD Calculation Results

The accuracy and reliability of MACD signals are influenced by several factors, beyond just the choice of “do we use close or adjusted close to calculate MACD.” Understanding these can help refine your technical analysis.

  1. Choice of Price Data (Close vs. Adjusted Close): As extensively discussed, this is paramount. Adjusted Close prices account for corporate actions (dividends, splits), preventing artificial gaps or jumps in historical data that would distort EMAs and MACD signals. Using unadjusted data can lead to false signals, especially in long-term analysis.
  2. EMA Periods (12, 26, 9): The standard periods are 12-day EMA, 26-day EMA, and a 9-day EMA for the signal line. Shorter periods make the MACD more sensitive and prone to whipsaws, while longer periods make it smoother but more lagging. The choice depends on the trading style (e.g., day trading vs. swing trading) and the asset’s volatility.
  3. Asset Volatility: Highly volatile assets will produce a more erratic MACD line with frequent crossovers, potentially generating many false signals. Less volatile assets will have a smoother MACD. Adjusting EMA periods might be necessary for different volatility profiles.
  4. Timeframe of Analysis: MACD is typically used on daily, weekly, or monthly charts. The impact of “do we use close or adjusted close to calculate MACD” is more pronounced on longer timeframes where corporate actions accumulate. On very short timeframes (e.g., hourly or minute charts), the difference is usually negligible.
  5. Market Conditions (Trend vs. Range): MACD performs best in trending markets, identifying momentum and potential reversals. In sideways or ranging markets, it can generate numerous false signals as the EMAs converge and diverge frequently without a clear direction.
  6. Volume Confirmation: MACD signals are often more reliable when confirmed by trading volume. A MACD crossover accompanied by high volume suggests stronger conviction behind the move, whereas low volume might indicate a weaker signal.
  7. Divergence Strength: MACD divergence (when price makes a new high/low but MACD doesn’t) is a powerful signal. The clarity and reliability of this divergence can be significantly affected by whether adjusted or unadjusted prices are used, as artificial price movements can create false divergences.
  8. Other Indicators: MACD is rarely used in isolation. Combining it with other indicators like RSI, Stochastic Oscillator, or Bollinger Bands can provide stronger confirmation and reduce false signals. The consistency of the input data (Close vs. Adjusted Close) should ideally be maintained across all indicators for coherent analysis.

Frequently Asked Questions (FAQ)

Q1: Do we use close or adjusted close to calculate MACD?

A1: For most long-term technical analysis, especially when dealing with historical data that spans corporate actions like dividends or stock splits, it is highly recommended to use the Adjusted Close price. This ensures that the historical price series is continuous and accurately reflects the true value of the stock, preventing artificial distortions in the MACD indicator.

Q2: What is the main difference between Close and Adjusted Close prices?

A2: The Close price is the raw, last traded price of a stock for the day. The Adjusted Close price modifies historical Close prices to account for corporate actions such as stock splits, dividends, and spin-offs, making historical data comparable to current prices.

Q3: Why does using raw Close prices for MACD calculation cause problems?

A3: Raw Close prices can create artificial gaps or jumps in historical charts due to corporate actions. These distortions can lead to inaccurate Exponential Moving Averages (EMAs), which are the foundation of MACD. This results in misleading MACD lines, false crossovers, and unreliable trading signals.

Q4: Does the choice of Close vs. Adjusted Close matter for all timeframes?

A4: The impact is most significant on longer timeframes (daily, weekly, monthly charts) where corporate actions have had time to accumulate and affect historical prices. For very short-term, intraday analysis, the difference is usually negligible as corporate actions are typically accounted for overnight.

Q5: Will my charting software automatically use Adjusted Close for MACD?

A5: Most reputable charting platforms and data providers default to using Adjusted Close prices for historical data to ensure accuracy. However, it’s always good practice to verify the settings or data source to confirm that adjusted data is indeed being used, especially when exporting data or using custom scripts.

Q6: Can using Adjusted Close change MACD crossover signals?

A6: Yes, absolutely. Because Adjusted Close prices create a smoother, more accurate historical price series, the EMAs, MACD line, and Signal line will all be calculated differently. This can lead to MACD crossovers occurring at different times or with different magnitudes compared to using raw Close prices, potentially altering trading decisions.

Q7: What if a stock doesn’t pay dividends or have splits?

A7: If a stock has never had any corporate actions (no splits, no dividends, no spin-offs), then its Close price and Adjusted Close price will be identical. In such rare cases, the choice between the two will not affect the MACD calculation.

Q8: Is there any scenario where using raw Close price for MACD is preferable?

A8: For very specific, short-term analyses where the exact transaction price of the day is paramount and corporate actions are irrelevant (e.g., analyzing intra-day volatility without historical context), raw Close might be considered. However, for any analysis involving historical trends or comparisons, Adjusted Close is almost always the superior choice for MACD.

Related Tools and Internal Resources

Enhance your technical analysis with these related tools and guides:

© 2023 YourCompany. All rights reserved. Disclaimer: This calculator and article are for educational purposes only and not financial advice.



Leave a Reply

Your email address will not be published. Required fields are marked *