ArticleslgStudy

science

MACD

MACD is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MACD rather than just read about it. In short: The Moving Average Convergence Divergence (MACD) is a trading indicator used in technical analysis of securities prices, created by Gerald Appel in the late 1970s. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.

MACD — main illustration
MACD — illustration

Key takeaways

  • MACD belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MACD to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MACD from memory before moving on to harder problems.

Reference excerpt

The Moving Average Convergence Divergence (MACD) is a trading indicator used in technical analysis of securities prices, created by Gerald Appel in the late 1970s. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price. The MACD indicator (or "oscillator") is a collection of three time series calculated from historical price data, most often the closing price. These three series are: the MACD series proper, the "signal" or "average" series, and the "divergence" series which is the difference between the two. The MACD series is the difference between a "fast" (short period) exponential moving average (EMA), and a "slow" (longer period) EMA of the price series. The average series is an EMA of the MACD series itself. The MACD indicator thus depends on three time parameters, namely the time constants of the three EMAs. The notation "MACD(a,b,c)" usually denotes the indicator where the MACD series is the difference of EMAs with characteristic times a and b, and the average series is an EMA of the MACD series with characteristic time c. These parameters are usually measured in days. The most commonly used values are 12, 26, and 9 days, that is, MACD(12,26,9). As true with most of the technical indicators, MACD also finds its period settings from the old days when technical analysis used to be mainly based on the daily charts. The reason was the lack of the modern trading platforms which show the changing prices every moment. As the working week used to be 6-days, the period settings of (12, 26, 9) represent 2 weeks, 1 month and one and a half week. Now when the trading weeks have only 5 days, possibilities of changing the period settings cannot be overruled. However, it is always better to stick to the period settings which are used by the majority of traders as the buying and selling decisions based on the standard settings further push the prices in that direction. Although the MACD and average series are discrete values in nature, they are customarily displayed as continuous lines in a plot whose horizontal axis is time, whereas the divergence is shown as a bar chart (often called a histogram).

A fast EMA responds more quickly than a slow EMA to recent changes in a stock's price. By comparing EMAs of different periods, the MACD series can indicate changes in the trend of a stock. It is claimed that the divergence series can reveal subtle shifts in the stock's trend. Since the MACD is based on moving averages, it is a lagging indicator. As a future metric of price trends, the MACD is less useful for stocks that are not trending (trading in a range) or are trading with unpredictable price action. Hence the trends will already be completed or almost done by the time MACD shows the trend.

Terminology Over the years, elements of the MACD have become known by multiple and often over-loaded terms. The common definitions of particularly overloaded terms are: Divergence:

As the D in MACD, "divergence" refers to the two underlying moving averages drifting apart, while "convergence" refers to the two underlying moving averages coming towards each other. Gerald Appel referred to a "divergence" as the situation where the MACD line does not conform to the price movement, e.g. a price low is not accompanied by a low of the MACD. Thomas Asprey dubbed the difference between the MACD and its signal line the "divergence" series. In practice, definition number 2 above is often preferred. Histogram:

Gerald Appel referred to bar graph plots of the basic MACD time series as "histogram". In Appel's Histogram the height of the bar corresponds to the MACD value for a particular point in time. The difference between the MACD and its Signal line is often plotted as a bar chart and called a "histogram". In practice, definition number 2 above is often preferred.

Formula The formula for the MACD line is based on two exponential moving averages of the close prices, usually with the periods of 12 and 26:

MACD line = EMA 12 − EMA 26 {\displaystyle {\text{MACD line}}={\text{EMA}}_{12}-{\text{EMA}}_{26}}

The signal line is then built as the exponential moving average of the MACD line:

Signal line = EMA 9 ( MACD line ) {\displaystyle {\text{Signal line}}={\text{EMA}}_{9}({\text{MACD line}})}

Mathematical interpretation In signal processing terms, the MACD series is a filtered measure of the derivative of the input (price) series with respect to time. (The derivative is called "velocity" in technical stock analysis.) MACD estimates the derivative as if it were calculated and then filtered by the two low-pass filters in tandem, multiplied by a "gain" equal to the difference in their time constants. It also can be seen to approximate the derivative as if it were calculated and then filtered by a single low pass exponential filter (EMA) with time constant equal to the sum of time constants of the two filters, multiplied by the same gain. So, for the standard MACD filter time constants of 12 and 26 days, the MACD derivative estimate is filtered approximately by the equivalent of a low-pass EMA filter of 38 days. The time derivative estimate (per day) is the MACD value divided by 14. The average series is also a derivative estimate, with an additional low-pass filter in tandem for further smoothing (and additional lag). The difference between the MACD series and the average series (the divergence series) represents a measure of the second derivative of price with respect to time ("acceleration" in technical stock analysis). This estimate has the additional lag of the signal filter and an additional gain factor equal to the signal filter constant.

… excerpt ends here. Continue reading the full article.

Illustrations

MACD: Example of historical stock price data (top half) with the typical presentation of a MACD(12,26,9) indicator (bottom half). The blue line is the MACD series proper, the difference between the 12-day and 26-day EMAs of the price. The red line is the average or signal series, a 9-day EMA of the MACD series. The bar graph shows the divergence series, the difference of those two lines.
Example of historical stock price data (top half) with the typical presentation of a MACD(12,26,9) indicator (bottom half). The blue line is the MACD series proper, the difference between the 12-day and 26-day EMAs of the price. The red line is the average or signal series, a 9-day EMA of the MACD series. The bar graph shows the divergence series, the difference of those two lines.
MACD: MACD indicator showing vertical lines (histogram)
MACD indicator showing vertical lines (histogram)

Worked examples

Example 1 — a first encounter with MACD

Start with the simplest possible case. Write down what MACD claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MACD before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MACD ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MACD

In research
MACD appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MACD in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MACD is common in secondary-school and first-year university syllabi. It links to neighbouring topics Technical analysis, Technical indicators, so understanding it makes those chapters shorter.
In everyday life
Look for MACD outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study MACD in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MACD means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MACD out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MACD in simple terms?

The Moving Average Convergence Divergence (MACD) is a trading indicator used in technical analysis of securities prices, created by Gerald Appel in the late 1970s. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.

Why does MACD matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MACD?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MACD.

Tags

  • Technical analysis
  • Technical indicators

Keep exploring