幅度:=5;
根数:=3;
AA:=BArslAST(COUNT((REF(C,1)/C-1)*100>=幅度,3)>=根数 AND (REF(C,1)/C-1)*100>=幅度);
BB:IF(AA<30,REF(O,BARSLAST(CURRBARSCOUNT=CONST(AA)+1)),DRAWNULL),LINETHICK2,COLORRED;
CC:=BARSLAST(CURRBARSCOUNT=CONST(AA)+2);
DRAWTEXT(CC,H,'三外有三'),DRAWAbovE;
DRAWICON((COUNT(C>BB,CC)=1 AND C>BB OR crOSS(C,BB)) AND CC<=30,L,1);
{
选股公式:
幅度:=5;
根数:=3;
AA:=BARSLAST(COUNT((REF(C,1)/C-1)*100>=幅度,3)>=根数 AND (REF(C,1)/C-1)*100>=幅度);
BB:=IF(AA<30,REF(O,BARSLAST(CURRBARSCOUNT=CONST(AA)+1)),DRAWNULL);
CC:=BARSLAST(CURRBARSCOUNT=CONST(AA)+2);
XG:=(COUNT(C>BB,CC)=1 AND C>BB OR CROSS(C,BB)) AND CC<=30;
COUNT(XG,5);
}