Dd:EMA(CLOSE,12)-EMA(CLOSE,26);
Ee:EMA(Dd,9);
Mm:(Dd-Ee)*2,COLORSTICK;
缩头:=IF(Mm>0 AND REF(Mm,1)>REF(Mm,2) AND Mm< REF(Mm,1),1,0);
缩脚:=IF(Mm<0 AND REF(Mm,1)< REF(Mm,2) AND MACD>REF(Mm,1),1,0);
DRAWICON(缩头,mm,"sell"),ALIGN0;
DRAWICON(缩脚,mm,"buy"),ALIGN0;