DIF:(ema(CLOSE,2) - EMA(CLOSE,89))/C*10,COLORWHITE;
DEA:=EMA(DIF,21);
MACD : 2*(DIF-DEA);
STICKLINE(MACD>0 AND DIF>0,0,MACD,2,1),COLORLICYAN;
STICKLINE(DIF<0 AND MACD>0,0,MACD,2,1),COLORLIGREEN;
STICKLINE(DIF>0 AND MACD<0,0,MACD,2,0),COLORBLUE;
STICKLINE(DIF<0 AND MACD<0,0,MACD,2,0),COLORYELLOW;
满仓:MACD>0 AND DIF>0,COLORLICYAN,NODRAW;
半仓:DIF>0 AND MACD<0,COLORBLUE,NODRAW;
轻仓:DIF<0 AND MACD>0,COLORLIGREEN,NODRAW;
空仓:DIF<0 AND MACD<0,COLORYELLOW,NODRAW;
-DIF,COLORCYAN;
DRAWICON(crOSS(-DIF,MACD),DIF,2);
DRAWICON(CROSS(MACD,-DIF),DIF,1);