0;
DIF1:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORWHITE;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORF00FF0;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORGREEN;
MACD02:=(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1)*100;
DIF2:EMA(SUM(MACD02,2),3),LINETHICK2,COLORBLUE;
入1:IF(DIF2>REF(DIF2,1),DIF2,DRAWNULL),COLORWHITE,LINETHICK2;
入2:IF(DIF2<REF(DIF2,1),DIF2,DRAWNULL),COLOR00FF00,LINETHICK2;
DEA2:MA(DIF2,3),COLORRED;
DRAWICON(LONGCROSS(DIF2,DEA2,2),DEA2,1);
DRAWICON(LONGCROSS(DEA2,DIF2,2),DEA2,2);