[R-SIG-Finance] possible bug in cdoTA

BBands bbands at gmail.com
Sun Mar 25 16:54:00 CEST 2007


There are three pieces to the puzzle: MACD, MACD Signal and MACD Histogram.

Where x is a time series and a=12, b=26, c=9 are Appel's defaults:

MACD = ema(x, a) - ema(x, b)
MACD_Signal = ema(MACD, c)
MACD_Histogram = MACD - MACD_Signal

Hope that helps,

    jab

    jab
-- 
John Bollinger, CFA, CMT
www.BollingerBands.com

If you advance far enough, you arrive at the beginning.



More information about the R-SIG-Finance mailing list