dif:Ema(CLOSE,12)-ema(CLOSE,26),COLORLICYAN,LINETHICK0;
DEA:EMA(DIF,9),COLORWHITE,LINETHICK0;
DRAWTEXT(crOSS(DIF,DEA),DIF-0,'建仓'),COLORBLUE;
DRAWTEXT(CROSS(DEA,DIF),DIF+0,'空仓'),COLORCYAN;
MacD彩柱:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((macd彩柱<REF(MACD彩柱,1)) AND (MACD彩柱>0)),0,MACD彩柱,1,0),COLORLIGREEN,LINETHICK2;
STICKLINE(((MACD彩柱>REF(MACD彩柱,1)) AND (MACD彩柱<0)),0,MACD彩柱,1,0),COLORFF00FF,LINETHICK2;
_抄底:Abs((CROSS("MACD.DIF","MACD.DEA")
&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORMAGENTA;
_DIF:"MACD.DIF",COLORCYAN;
_DEA:"MACD.DEA";
__强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORWHITE,LINETHICK1;
_强度:IF(_DEA<_DIF,_DEA,DRAWNULL);
DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORBLUE;
DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);
DRAWICON(CROSS(_DIF,_DEA),_DEA,1);
DRAWICON(CROSS(_DEA,_DIF),_DEA,2);