去st:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除停牌:=DYNAINFO(4)>0;
去除創(chuàng)業(yè)板:=IF(CODELIKE('300') OR CODELIKE('301') ,0,1) ;
去除科創(chuàng)板:=IF(CODELIKE('688'),0,1);
去:=去ST AND 去除停牌 AND 去除創(chuàng)業(yè)板 AND 去除科創(chuàng)板;
主力攻擊線:(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;
實(shí)體:=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>主力攻擊線 ;
持續(xù)放量:=100*SUM(vol,3)/CAPITAL>=10 AND COUNT(AMOUNT>REF(AMOUNT,1),3)=3;
超跌板:=漲停=1 AND 實(shí)體=1 AND COUNT(漲停,13)=1 AND REF(K,1)<=20 AND 成交額=1;
趨勢(shì)板:=漲停=1 AND 實(shí)體=1 AND COUNT(漲停,13)=1 AND 均線金叉=1 AND 成交額=1;
放量板:=漲停=1 AND 實(shí)體=1 AND COUNT(漲停,13)=1 AND 持續(xù)放量=1 AND 成交額=1;
XG:=放量板 OR 趨勢(shì)板 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 趨勢(shì)板=1,L,26);
DRAWICON(去=1 AND 放量板=1,L,27);