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
- บทเรียนที่ 2 จาก 8
- 1MACD Indicator Explained: A Complete Beginner's Guide
- 2MACD Line Explained: Formula and Meaning
- 3MACD Signal Line Explained: Formula and Purpose
- 4MACD Histogram Explained: Formula and Interpretation
- 5MACD Signal Crossover Explained
- 6MACD Zero-Line Crossover Explained
- 7What Do You Need to Know About MACD Divergence?
- 8Why MACD Should Be Used With Trend and Price Structure?
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.
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.
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.
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.
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.
Frequently Asked Questions
MACD Line = 12-period EMA − 26-period EMA, using closing prices.
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.
ซื้อขาย ตลาด ของโลก
เปิดบัญชีจริงและเข้าถึงตลาดการซื้อขายกว่า 7 แห่ง รวมถึงฟอเร็กซ์ โลหะ ดัชนี หุ้น คริปโต และอื่นๆ — จากโบรกเกอร์ที่ได้รับความไว้วางใจทั่วโลก
- ได้รับการกำกับดูแลหลายเขตอำนาจศาล
- การดำเนินการที่รวดเร็วสุดๆ
- เงินทุนลูกค้าแยกต่างหาก การสนับสนุน 24/7
การซื้อขาย CFD มีความเสี่ยงสูงต่อการสูญเสีย กรุณาซื้อขายอย่างมีความรับผิดชอบ
