DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26)),COLORWHITE,LINETHICK1;DEA:EMA(DIF,9),COLORYELLOW,LINETHICK1;:(DIF-DEA)*2,COLORSTICK;STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0.2,0),COLORRED;STICKLINE(MACD
[0,0,MACD,0.2,0),COLORYELLOW;STICKLINE(MACD>REF(MACD,1)AND MACD<0 MACD<0,0,MACD,0.2,0),COLORGREEN;FH1:=REF(MACD,1) REF(MACD,3)][=0 AND COUNT(MACD>REF(MACD,1),1)=1;FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);FH4:=FH1 AND FH2 AND A((DIF-DEA)/C)<0 FH5:=FH1>0,COLORYELLOW,NODRAW;
]