How to Calculate Moving Average Convergence Divergence (MACD) (2024)

What Is the Moving Average Convergence Divergence (MACD)?

The moving average convergence divergence (MACD) is a popular technical momentum indicator, calculated for use with a variety of exponential moving averages (EMAs) and used to assess the power of price movement in a market.

Key Takeaways

  • Moving Average Convergence Divergence (MACD) is calculated by subtracting the 26-period exponential moving average (EMA) from the 12-period EMA.
  • MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
  • The speed of crossovers is also taken as a signal of a market is overbought or oversold.
  • MACD helps investors understand whether the bullish or bearish movement in the price is strengthening or weakening.

Calculating MACD

There are several calculations involved in the creation of the total (MACD) indicator, all involving the use of exponential moving averages.

An EMA is calculated as follows:

  • Calculate the simple moving average (SMA) for the chosen number of time periods. (The EMA uses an SMA as the previous period's EMA to start its calculations.) To calculate a 12-period EMA, this would simply be the sum of the last 12 time periods, divided by 12.

Weight Multiplier = K = 2/(n+1) where n = period

  • Calculate the weighting multiplier using this equation:
    212+1=0.1538\frac{2}{12+1}= 0.153812+12=0.1538

Calculate the 12 EMA sequentially as:
(CloseEMApreviousperiod)0.1538+EMApreviousperiod\left(Close - EMA_{previous~period}\right)* 0.1538 + EMA_{previous~period}(CloseEMApreviousperiod)0.1538+EMApreviousperiod

Putting together the MACD requires simply doing all of the following EMA calculations for any given market instrument (a stock, future, currency pair, or market index):

  1. Calculate a 12-period EMA of the price for the chosen time period.
  2. Calculate a 26-period EMA of the price for the chosen time period.
  3. Subtract the 26-period EMA from the 12-period EMA to create the MACD line.
  4. Calculate a nine-period EMA of the MACD line (the result obtained from step 3) to create the signal line.
  5. Subtract the signal line from the MACD line to create the histogram.

This nine-period EMA line is overlaid on a histogram that is created by subtracting the nine-period EMA from the result in step 3, which is called the MACD line, but it is not always visibly plotted on the MACD representation on a chart.

The MACD has a zero line to indicate positive and negative values. The MACD has a positive value whenever the 12-period EMA is above the 26-period EMA and a negative value when the 12-period EMA is below the 26-period EMA.

The Bottom Line

The MACD uses exponential moving averages in sequence to produce a popular indicator of momentum, which allows technical traders to spot trends and reversals. While MACD can provide some useful information, it should not be the only tool you use when trading.

How to Calculate Moving Average Convergence Divergence (MACD) (2024)
Top Articles
How to Calculate Inventory Lost in Catastrophe With the Gross Profit Method
Risk of Rain 2 57 Leaf Clover: How to Unlock 57 Leaf Clover on Console
Antisis City/Antisis City Gym
Netr Aerial Viewer
Ffxiv Shelfeye Reaver
Missing 2023 Showtimes Near Cinemark West Springfield 15 And Xd
Strange World Showtimes Near Cmx Downtown At The Gardens 16
Garrick Joker'' Hastings Sentenced
Miami Valley Hospital Central Scheduling
อพาร์ทเมนต์ 2 ห้องนอนในเกาะโคเปนเฮเกน
Watch TV shows online - JustWatch
Classroom 6x: A Game Changer In The Educational Landscape
Daily Voice Tarrytown
8664751911
Vintage Stock Edmond Ok
Isaidup
Winco Employee Handbook 2022
Yosemite Sam Hood Ornament
Gas Buddy Prices Near Me Zip Code
F45 Training O'fallon Il Photos
Sister Souljah Net Worth
Asteroid City Showtimes Near Violet Crown Charlottesville
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Culver's Hartland Flavor Of The Day
Rust Belt Revival Auctions
Tra.mypatients Folio
Luciipurrrr_
Beth Moore 2023
Sinfuldeeds Vietnamese Rmt
Missouri State Highway Patrol Will Utilize Acadis to Improve Curriculum and Testing Management
Whitehall Preparatory And Fitness Academy Calendar
Why Gas Prices Are So High (Published 2022)
NHL training camps open with Swayman's status with the Bruins among the many questions
Legit Ticket Sites - Seatgeek vs Stubhub [Fees, Customer Service, Security]
Craigslist Mexicali Cars And Trucks - By Owner
Fetus Munchers 1 & 2
Bartow Qpublic
How Does The Common App Work? A Guide To The Common App
Trivago Sf
Sechrest Davis Funeral Home High Point Nc
Yale College Confidential 2027
Conan Exiles Tiger Cub Best Food
UNC Charlotte Admission Requirements
German American Bank Owenton Ky
Online TikTok Voice Generator | Accurate & Realistic
99 Fishing Guide
Ics 400 Test Answers 2022
Peugeot-dealer Hedin Automotive: alles onder één dak | Hedin
Inside the Bestselling Medical Mystery 'Hidden Valley Road'
Who We Are at Curt Landry Ministries
Obituaries in Westchester, NY | The Journal News
Latest Posts
Article information

Author: Melvina Ondricka

Last Updated:

Views: 5525

Rating: 4.8 / 5 (48 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Melvina Ondricka

Birthday: 2000-12-23

Address: Suite 382 139 Shaniqua Locks, Paulaborough, UT 90498

Phone: +636383657021

Job: Dynamic Government Specialist

Hobby: Kite flying, Watching movies, Knitting, Model building, Reading, Wood carving, Paintball

Introduction: My name is Melvina Ondricka, I am a helpful, fancy, friendly, innocent, outstanding, courageous, thoughtful person who loves writing and wants to share my knowledge and understanding with you.