MACD

See Also    

Related Topics

 

 

The MACD is an oversold/overbought indicator that looks at the relationship between a long term and a short term moving average.  The MACD line is the difference between the two moving averages.  A second line, the signal line, is a short-term moving average of the MACD line.  By default, the MACD employs a smoothing factor in an exponential moving average.  However, these defaults can be changed  by choosing different moving average calculations and/or different numbers of periods in the MACD parameters menu.

 

 

Formula:

 

 

Where:

 

EMA1t = current value of 1st exponential moving average

EMA2t = current value of 2nd exponential moving average

EMA1t-1 = previous value of 1st exponential moving average

EMA2t-1 = previous value of 2nd exponential moving average

SF1 = smoothing factor for EMA1

SF2 = smoothing factor for EMA2

MACDt = current MACD value

MACDt-1 = previous MACD value

SLSF = signal line smoothing factor

 

When using the standard MACD, a buy signal is commonly interpreted when the MACD line is below the signal line and then crosses the signal line.  The point at which the MACD crosses the signal line is the buy indicator.  A sell signal is commonly interpreted when the MACD line crosses the signal line from above.

Parameters

 

Parameter

Function

Avg. Type

Sets the type of calculation for  the for Average 1, Average 2 and the Signal Line:

 

Option

Function

Exponential

Exponential moving average.

Hamming

Hamming moving average.

Modified

Modified moving average.

Simple

Simple moving average.

Weighted

Weighted moving average.

 

Color

Default color for the MACD Line is green. Default color for the Signal Line is yellow. To change the color, click on the color button:

 

 

Then choose the color you want from the Color Menu.

 

Graph

Sets the drawing method for the study.

 

Option

Function

Bars

Renders the study as bars.

Dots

Renders the study as dots.

Dotted

Renders the study as dots.

Histogram

Renders the study as a histogram drawn from 0.

Line (Default)

Renders the study as a line.

Not Drawn

The study is not rendered.

 

Line Style

Sets the rendering technique of the graph parameter (if it is set to Line).

 

Option

Function

Dash-Dot

--l-l-l-l-l-l-

Dash-Dot-Dot

----ll----ll----

Dashed

- - - - - - - - - - - - - - -

Dotted

llllllllll

Solid (Default)

-------------------------

 

Line Width

Sets the tickness of the study line.

 

Option

Function

1 pixel (Default)

 

2 pixels

 

3 pixels

 

4 pixels

 

5 pixels

 

 

Period

Default for Average 1 is 0.1

Default for Average 2 is 0.2

Default for Signal Line is 0.3

Price

The price on which the Average 1 and 2 are calculated:

 

Option

Function

Close

Closing price (Default for Average 1 and 2).

 

First Study

Calculates the study using the values of the first study in the window.

 

H, L Midpt

Calculates the study on the mid-point of the high and low.

 

H, L, C Avg.

Calculates the study on the average of the High, Low, and Close.

 

High

High price.

 

Low

Low price.

 

Open

Opening price.

 

Tick Average

Calculates the study on the average of ticks in the period.

 

 

Notes

MACD uses moving averages, which are lagging indicators, to create a leading indicator. The MACD consists of two lines, an MACD line and a Signal Line. The MACD line is the difference between two moving averages. The Signal Line is an exponential moving average of the MACD line. The resulting study is a pair of lines that oscillates above and below zero, with no upper or lower limit.

 

The common MACD is the difference between a 26-day and a 12-day exponential moving average. Gerald Appel and others have offered alternate moving average lengths that are specific to different instrument types. Use the parameters menu to adjust the lengths of the MACD moving averages.

 

MACD produces the following types of signals:

 

 

Positive divergence occurs when the MACD advances while the instrument is still in a downtrend. Negative divergence occurs when the MACD falls while the instrument is in an uptrend.

 

The Signal Line is adjustable, exponential moving average of the MACD. A bullish moving average crossover occurs when MACD moves above the Signal Line. A bearish moving average crossover occurs when MACD moves below the Signal Line.

 

A bullish centerline crossover occurs when the MACD moves above the zero line into positive territory. A bearish centerline crossover occurs when the MACD moves below the zero line into negative territory.

 

see, Appel, Gerald, The Moving Average Convergence-Divergence Trading Method, New York: Signalert Corporation.