DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
DRAWTEXT(crOSS(MacD,0),DIF,'▲'),LINETHICK4,COLORRED;
DRAWTEXT(CROSS(0,MACD),DEA,'▼'),LINETHICK4,COLORGREEN;
主升 : DIF>0 AND DIF>DEA,COLOR0000FF,POINTDOT,LINETHICK0;
STICKLINE(主升,DIF,DEA,1,0),COLOR0000FF;