I am having troubles identifying correctly all parts of MACD when programming.
I want to write a strategy base on MACD(12,26,9), how can I reference 12, 26 and 9? I can’t tell exactly MACD, MACDLINE and AVERAGE[9](MACDLINE[12,26,9] from each other.
MCAD = 12 which is the ZERO line?
MACDLINE = 26 which is the %D line?
AVERAGE[9](MACDLINE[12,26,9] = 9 which is the %K line?
Thank you for your help.
Everything you need is already explained in the online prorealtime documentation of the website, with examples! 🙂
http://www.prorealcode.com/documentation/macd/
and
http://www.prorealcode.com/documentation/macdline/
(MACDline is already the average of the MACD with 9 periods by default, it is called the signal line)