Type : Indicator, Name : Color on MACD Histogram II
Input:
FastMA(12),
SlowMA(26),
MacdMA(9);
value1 = MACD(Close,FastMA,SlowMA);
value2 = XAverage(MACD(Close,FastMA,SlowMA),MacdMA);
if value1 > value1[1] then plot1(value1,»MACD Up») else {green hist}
if value1 < value1[1] then plot2(value1,»MACD Down») else {red hist}
plot3(value1,»MACD Flat»); {yellow hist}
plot4(value2, «MACD Avg»); {line}