Financial Time Series Toolbox    

Moving Average Convergence/Divergence (MACD)

Moving Average Convergence/Divergence (MACD) is an oscillator function used by technical analysts to spot overbought and oversold conditions. Look at the portion of the time series covering the three-month period between October 1, 1995 to December 31, 1995. At the same time fill any missing values due to holidays within the time period specified:

Now calculate the MACD, which when plotted produces two lines; the first line is the MACD line itself and the second is the nine-period moving average line:

Plot the MACD lines and the High-Low plot of the IBM stock prices in two separate plots in one window.

Figure 3-1, MACD and IBM Stock Prices shows the result.

Figure 3-1: MACD and IBM Stock Prices


  Examples William's %R