DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:2*(DIF-DEA),COLORSTICK;
DRAWBAND(DIF,RGB(255,0,128),DEA,RGB(0,128,128));
HMJ:=IF(DIF>DEA,SUM(MacD,BArslAST(crOSS(DIF,DEA))),DRAWNULL);
LMJ:=IF(DIF
DRAWNUMBER(CROSS(DEA,DIF),DEA,REF(HMJ,1)),COLORLIRED;
红柱数:IF(DIF>DEA AND ISLASTBAR,BARSLAST(CROSS(DIF,DEA))+1,DRAWNULL),COLORLIRED,NODRAW;
绿柱数:IF(DIF