STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,3,1),COLORRED;
STICKLINE(MACD =REF(MACD,1) AND MACD 0,0,MACD,3,1),COLORYELLOW;
STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,3,1),COLORWHITE;
STICKLINE(MACD =REF(MACD,1) AND MACD 0,0,MACD,3,1),COLORGREEN;
IF(DIF1 =DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(DIF,DEA),DIF-0.1, 金叉 ),COLORRED;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.1, 死叉 ),COLORGREEN;
DRAWICON(CROSS(DIF,DEA),-0.05,1);
DRAWICON(CROSS(DEA,DIF),+0.05,2);