DRAWGBK(1,COLORRGB(0,0,30),COLORRGB(0,0,100),1);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORFF80FF,LINETHICK1;
DEA:EMA(DIF,9),COLORRED,LINETHICK2;
MACD:(DIF-DEA)*2,COLORSTICK;
0,COLORWHITE;
DIF2:EMA(CLOSE,8)-EMA(CLOSE,20),COLORGREEN,LINETHICK2;
A1:=BARSLAST(REF(CROSS(DIF2,DIF),1));
A2:=BARSLAST(REF(CROSS(DIF2,DEA),1));
DB:=REF(C,A1+1) C AND REF(DIF2,A1+1) DIF2 AND REF(DIF2,1) DIF2 AND DIF2
DB2:=REF(C,A1+1) C AND REF(DIF,A1+1) DIF AND DIF
DB3:=REF(C,A2+1) C AND REF(DIF,A2+1) DIF AND DIF
STICKLINE(DB,DIF2,0,2,0),color00ffff;