N:=60;
LD:=LLV(L,N),NODRAW;
LT:=BARSLAST(LD),NODRAW;
CL:=REF(L,LT),NODRAW;
距前低2%:BETWEEN(L,CONST(LLV(CL,N)),CONST(LLV(CL,N))*1.02),COLORRED,STICK,LINETHICK9;
距前低5%:BETWEEN(L,CONST(LLV(CL,N)),CONST(LLV(CL,N))*1.05),COLORWHITE,STICK,LINETHICK5;
破前低5%:BETWEEN(L,CONST(LLV(CL,N)),CONST(LLV(CL,N))*0.95),COLORGREEN,STICK,LINETHICK5;
{
选股公式:
N:=60;
去除ST:=IF(NAMELIKE("ST") OR NAMELIKE("*ST"),0,1);
去除停牌:=DYNAINFO(4)>0;
去除大盘股:=CAPITAL/1000000<12;
LD:=LLV(L,N);
LT:=BARSLAST(LD);
CL:=REF(L,LT);
XG:BETWEEN(L,CONST(LLV(CL,N)),CONST(LLV(CL,N))*1.05) OR
BETWEEN(L,CONST(LLV(CL,N)),CONST(LLV(CL,N))*0.85) AND 去除ST AND 去除停牌 AND 去除大盘股;
};