Close vs. Adjusted Close Price for MACD Calculation
An interactive tool and in-depth guide to understand why the adjusted close price is superior for accurate technical analysis.
MACD Comparison Calculator
The Core Question: Close vs. Adjusted Close for MACD?
When performing technical analysis, the choice of data input is critical. A common point of confusion for traders is whether to use the **close price** or the **adjusted close price** to calculate indicators like the Moving Average Convergence Divergence (MACD). The short and definitive answer is: **you should almost always use the adjusted close price.**
Using the unadjusted close price can introduce significant distortions and generate false signals, especially when analyzing historical data over a period that includes corporate actions. This guide will explain why and demonstrate the difference with our calculator.
What is a Close Price?
The **close price** is simply the final price at which a stock traded during a regular trading session on a given day. It’s a raw data point reflecting the market value at that specific moment.
What is an Adjusted Close Price?
The **adjusted close price** is a modification of the close price to accurately reflect a stock’s value after accounting for corporate actions like stock splits and dividend distributions. For example, if a stock trading at $100 undergoes a 2-for-1 split, the new share price becomes $50. The adjusted close price looks back in time and modifies all historical prices to reflect this split, preventing a 50% price drop from appearing on the chart, which would mislead technical indicators.
MACD Formula and Why Adjustment Matters
The MACD is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock’s price. It is calculated using three main components:
- The MACD Line: (12-Period EMA) – (26-Period EMA)
- The Signal Line: 9-Period EMA of the MACD Line
- The Histogram: MACD Line – Signal Line
An Exponential Moving Average (EMA) gives more weight to recent prices. The entire calculation is based on historical price data. If that historical data is not adjusted for corporate actions, the MACD will interpret a stock split as a catastrophic price crash or a dividend payment as a sudden loss of value, generating false sell signals. This is why using the adjusted close is a core principle for reliable technical analysis.
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Price Data | The series of historical prices used for calculation. | Adjusted Currency (e.g., USD) | Varies by asset |
| Short EMA | The shorter-term Exponential Moving Average. | Periods (Days) | 12 (Standard) |
| Long EMA | The longer-term Exponential Moving Average. | Periods (Days) | 26 (Standard) |
| Signal Line EMA | The EMA of the MACD line itself. | Periods (Days) | 9 (Standard) |
Practical Example: The Impact of a Stock Split
Let’s examine a scenario, as reflected in our calculator’s default data. A company’s stock is performing well, and its price reaches $114. The board decides on a 2-for-1 stock split to make shares more accessible.
Example 1: Using the (Incorrect) Close Price
- Inputs: The price series before the split ends at $114. The day after the split, the raw close price is recorded as $58.
- Calculation: The MACD calculation sees a sudden, massive price drop from $114 to $58.
- Result: This generates a strong bearish crossover, signaling a massive sell-off and a change in trend. This is a **false signal**.
Example 2: Using the (Correct) Adjusted Close Price
- Inputs: The historical data is adjusted. The price of $114 is retroactively changed to $57 to be comparable with the new post-split price of $58.
- Calculation: The MACD calculation now sees a minor, normal price movement from an adjusted $57 to $58.
- Result: The MACD line continues its trend smoothly, reflecting the true, consistent underlying momentum of the stock. No false signal is generated. This shows why to **use adjusted close to calculate MACD**.
How to Use This MACD Calculator
- Enter Price Data: Paste your own comma-separated price data into the “Close Prices” and “Adjusted Close Prices” fields. For an accurate comparison, ensure they correspond to the same time period.
- Adjust Parameters: While 12, 26, and 9 are standard, you can change the EMA periods to fit your trading strategy.
- Calculate: Click the “Calculate & Compare” button.
- Interpret the Results:
- The **chart** provides the clearest visual. Notice the large, artificial dip in the MACD line derived from the close price, while the adjusted close line remains stable.
- The **final values** show the end-point calculations, highlighting how distorted the unadjusted numbers can become.
- The **verdict** summarizes the key takeaway of this analysis.
Key Factors That Mandate Using Adjusted Close
Understanding which corporate actions affect price history is key to knowing why the adjusted close is essential for MACD calculations.
- Stock Splits: As demonstrated, this is the most dramatic cause of distortion. A 2-for-1 or 3-for-1 split will create a massive, artificial price gap if not adjusted for.
- Dividends: When a company pays a dividend, its cash reserves decrease, and the stock price is adjusted downward on the ex-dividend date to reflect this. While smaller than a split, these adjustments are crucial for accurate long-term analysis.
- Reverse Stock Splits: The opposite of a split, where a company reduces its number of shares to increase the price per share. This creates a huge artificial price jump if not adjusted for.
- Rights Offerings: When a company offers existing shareholders the right to buy more shares at a discount, it can dilute the value of existing shares, requiring an adjustment.
- Spinoffs: When a company spins off a part of its business into a new, independent company, the original company’s value decreases, and an adjustment to its historical stock price is necessary.
- Data Accuracy Over Time: For any analysis spanning more than a few months, the probability of a dividend or other corporate action occurring is high. Relying on adjusted data is the only way to ensure consistency.
Frequently Asked Questions (FAQ)
1. Is there ever a time to use the raw close price for MACD?
For very short-term intraday trading where no corporate actions are expected to occur, using the close price might be acceptable. However, for any analysis that involves daily charts or longer, or for creating a reusable backtesting model, using the adjusted close is the professional standard.
2. How does the adjusted close handle dividends?
When a company pays a $1 dividend, the stock price typically drops by about $1 on the ex-dividend date. To create the adjusted price series, that $1 is effectively “added back” to the historical prices before the dividend was paid, smoothing the price history and reflecting the total return. For a helpful guide see, how dividends impact stock price.
3. Where can I find reliable adjusted close price data?
Most reputable financial data providers, like Yahoo Finance, Google Finance, and professional trading platforms, provide adjusted closing prices as a standard offering. It is often labeled “Adj. Close”.
4. Does using adjusted close cause lookahead bias in backtesting?
This is a common concern. True lookahead bias occurs if you use information that wasn’t available at the time of a trade. Historical adjusted prices *are* recalculated over time. However, for backtesting, this is the desired behavior. You want your model to act on the *true* underlying value, not on a nominal price that was distorted by a split. All major backtesting platforms use adjusted prices for this reason.
5. Why do the close and adjusted close prices differ even on days with no corporate actions?
Because the adjustment for a past event (like a dividend) is applied to all prices prior to that event. If a stock paid a dividend three months ago, the adjusted close for every single day before that date will be different from the raw close.
6. Can I just ignore days with big price drops in my calculation?
You could try, but this is an inefficient and unreliable method. It’s far more robust and simpler to just use the pre-calculated adjusted data that is industry standard for analyzing historical returns.
7. Does this apply to other technical indicators too?
Yes. Any indicator that relies on historical price data, such as the Relative Strength Index (RSI), Bollinger Bands, or simple Moving Averages, should also use the adjusted close price for the most accurate results. To learn more, check out these common technical indicators.
8. What is the main takeaway when deciding to use close or adjusted close to calculate MACD?
The main takeaway is that for any serious historical analysis, backtesting, or long-term trend following, the adjusted close price is the only reliable choice. It provides a true representation of an asset’s performance and prevents corporate actions from generating false and misleading trading signals.