DIF:EMA(CLOSE,5)-EMA(CLOSE,10);
DEA:EMA(DIF,5);
macd:(DIF),COLORSTICK;
DIF,COLORGREEN,LINETHICK2;
DEA,COLORGREEN,LINETHICK1;
零上金叉买:0,COLORYELLOW,LINETHICK2;
{-股票公式网站 }
IF(DIF>DEA,DIF,DRAWNULL),COLOR0000FF,LINETHICK2;
IF(DEA>REF(DEA,1),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
DRAWICON(crOSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
DRAWICON(CROSS(DIF,0),0,7);