N:=7;
M:=43;
Q:=27;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
STICKLINE( crOSS(DEA+0.5*Q,DIF) ,0.5,0.8,0.5,0),COLORBLUE;
STICKLINE( CROSS(DEA+0.5*Q,DIF) ,0,0.5,0.5,0),COLORGREEN;
DRAWTEXT( CROSS(DEA+0.5*Q,DIF),0.75,'怀疑顶') COLORRED;