DIF:EMA(CLOSE,6)-EMA(CLOSE,12);
DEA:EMA(DIF,9);
macd:(DIF-DEA)*2,COLORSTICK;
M:=BArslAST(H=HHV(H,40));
DRAWTEXT(M>30 AND DEA<-0.35 AND Abs(DEA/C)>0.035 AND DIF>REF(DIF,1),DEA,'超卖'),COLORMAGENTA;
DRAWTEXT(M>30 AND DIF<-0.6 AND ABS(DIF/C)>0.06,DIF,'超卖'),COLORMAGENTA;