BEGINNER'S GUIDE
Understanding technical analysis

MACD Line Explained:
Formula and Meaning

Learn the formula for the MACD line and what it represents, verified against standard technical analysis sources.

⏰  7 min read 👤  For beginners 📚  Educational
QUICK GUIDE Explore this article
+

This lesson explains the MACD line — the core calculation underlying the entire indicator.

The formula described in this lesson reflects the standard, widely established calculation method, verified against multiple technical analysis education sources.

SECTION 01

The MACD Line Formula

The MACD line is calculated as: MACD Line = 12-period EMA − 26-period EMA. Both EMAs (covered in the previous unit) are generally calculated using closing prices. This produces a single value that fluctuates above and below zero, depending on the relationship between the two EMAs.

SECTION 02

What the MACD Line Represents

When the MACD line is positive, this means the 12-period EMA is above the 26-period EMA, generally interpreted as reflecting stronger shorter-term momentum relative to the longer-term average. When the MACD line is negative, the opposite is true — the 12-period EMA is below the 26-period EMA.

SECTION 03

Convergence and Divergence of the Underlying EMAs

The indicator's name reflects the behaviour of the two underlying EMAs: convergence occurs when the two EMAs move toward each other (the MACD line moves toward zero), and divergence, in this specific sense, occurs when the two EMAs move apart (the MACD line moves further from zero in either direction). This is distinct from the divergence concept covered later in this unit, which compares MACD to price rather than describing the EMAs' relationship to each other.

SECTION 04

Standard Settings and Adjustability

The 12 and 26-period settings are the standard, most commonly used values, though these can be adjusted — shorter periods generally increase sensitivity, while longer periods generally decrease it, similar to the general moving average period considerations covered in the previous unit.

🔖 Summary

The MACD line is calculated as the 12-period EMA minus the 26-period EMA, producing a value that's positive when the shorter EMA is above the longer one (reflecting stronger short-term momentum) and negative when the reverse is true. The indicator's name reflects the convergence and divergence of these two underlying EMAs, distinct from the MACD-price divergence concept covered later in this unit.

FAQ

Frequently Asked Questions

What is the MACD line formula?

MACD Line = 12-period EMA − 26-period EMA, using closing prices.

What does a positive MACD line indicate?

That the 12-period EMA is above the 26-period EMA, generally interpreted as reflecting stronger shorter-term momentum relative to the longer-term average.

What do 'convergence' and 'divergence' mean in the indicator's name?

Convergence means the two underlying EMAs are moving toward each other; divergence means they're moving apart. This is different from MACD-price divergence covered later in this unit.

Are the 12 and 26-period settings fixed?

These are standard, widely used values, but they can be adjusted, with shorter periods increasing sensitivity and longer periods decreasing it.

Risk Warning

Trading forex and CFDs involves significant risk and may not be suitable for all investors. You may lose all of your invested capital. Please ensure you fully understand the risks before trading.

GTCFX operates as a multi-regulated group of companies, clients are kindly advised to confirm the specific legal entity, regulation, and jurisdiction under which they are being onboarded.

Trade the World's markets.

Open a live account and access 27,000+ instruments across forex, indices, commodities, and crypto — from a broker trusted globally.

CFD trading involves significant risk of loss. Please trade responsibly.

27,000+

INSTRUMENTS

20+

Languages Supported

5

Regulated Entities

GTC Go

GTCFX: GTC Go – Trade & Invest