A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买进:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)))AND TIME>1440,COLORRED;
DRAWTEXT(买进,0.5,'尾盘买进'),COLORYELLOW;
乖离率6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
乖离率12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
乖离率24:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
{6日乖离率超过-6%,12日乖离率超过-10%,24日乖离率超过-16% }
乖离率:乖离率6<-6 AND 乖离率12<-10 AND 乖离率24<-16;{做成选股公式就能设置预警了};