今开:=(O/REF(C,1)-1)*100;实:=ABS(C-O)/C;
涨停:=C/REF(C,1) 1.09 AND C=H;
AAA:=(EVERY(REF(C,1)/REF(C,2) 1.09,2) AND C REF(C,1) AND C O) AND H/L 1.05;
AAB:=(EVERY(REF(C,1)/REF(C,2) 1.09,2) AND O =REF(C,1) AND C REF(C,1) AND H =REF(C,1));
AAE:=COUNT(REF(涨停,1),2)=2 AND H REF(C,1) AND REF(实,1) REF(实,2) AND 实 =0.03;
A:=AAA OR AAB OR AAE;
B:=BARSLAST((A AND REF(L*0.99,1)) OR (A AND REF(L*0.9,1)) OR (A AND REF(L*0.8,1)) OR (A AND REF(L*0.7,1)));
DRAWTEXT(A,REF(L*0.99,1),'--------------------------------------------')COLORYELLOW;
DRAWTEXT(A,REF(L*0.9,1),'--------------------------------------------')COLORYELLOW;
DRAWTEXT(A,REF(L*0.8,1),'--------------------------------------------')COLORYELLOW;
DRAWTEXT(A,REF(L*0.7,1),'--------------------------------------------')COLORYELLOW;
STICKLINE(涨停,OPEN,CLOSE,1.5,0),COLORYELLOW;
跌停:=REF(C,1)/C 1.09;
STICKLINE(跌停,OPEN,CLOSE,1.5,0),COLORWHITE;