去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除停牌:=DYNAINFO(4)>0;
去除创业板:=IF(CODELIKE('300') OR CODELIKE('301') ,0,1) ;
去除科创板:=IF(CODELIKE('688'),0,1);
去:=去ST AND 去除停牌 AND 去除创业板 AND 去除科创板;
主力攻击线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,9))/3,COLORWHITE;
主力控盘线:(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15)+MA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/6,COLORYELLOW,LINETHICK2;
IF(主力攻击线>REF(主力攻击线,1) AND 主力攻击线>主力控盘线,主力攻击线,DRAWNULL),COLORRED;
涨幅:=CLOSE/REF(CLOSE,1)-1;
涨停:=涨幅>=0.09 AND CLOSE=HIGH;
实体:=CLOSE>LOW;
成交额:=AMOUNT>=REF(HHV(AMOUNT,10),1);
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K:=SMA(RSV,3,1);
乖离率:=(CLOSE/主力攻击线-1)*100;
连板:=COUNT(涨停,2)=2;
A2ZQ:=BArslAST(连板);
STICKLINE(A2ZQ=0,OPEN,HIGH,8,0),COLORMAGENTA;
STICKLINE(A2ZQ=0,LOW,OPEN,0,0),COLORMAGENTA;
均线金叉:=BARSLAST(crOSS(主力攻击线,主力控盘线))<=8 AND 乖离率<=10 AND 主力攻击线>主力控盘线 AND C>主力攻击线 ;
持续放量:=100*SUM(vol,3)/CAPITAL>=10 AND COUNT(AMOUNT>REF(AMOUNT,1),3)=3;
超跌板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND REF(K,1)<=20 AND 成交额=1;
趋势板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND 均线金叉=1 AND 成交额=1;
放量板:=涨停=1 AND 实体=1 AND COUNT(涨停,13)=1 AND 持续放量=1 AND 成交额=1;
XG:=放量板 OR 趋势板 OR 超跌板;
STICKLINE(去=1 AND XG=1,OPEN,HIGH,8,0),COLORYELLOW;
STICKLINE(去=1 AND XG=1,LOW,OPEN,0,0),COLORYELLOW;
DRAWICON(去=1 AND 超跌板=1,L,25);
DRAWICON(去=1 AND 趋势板=1,L,26);
DRAWICON(去=1 AND 放量板=1,L,27);