红十字:=1;
ZQ:=BARSCOUNT(C);
YZ:=C=ZTPRICE(REF(C,1),0.1) AND L=H;
XGG1:=(EVERY(YZ,ZQ) OR ZQ=1);
GL:=NOT(XGG1 OR NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')
OR INBLOCK('科创板')) ;
A:=(O>REF(H,1) AND (O-REF(C,1))/REF(C,1)*100>0.01);
ZTXS:=IF((FINANCE(3)=4 OR (DATE>1200822&&FINANCE(3)=3)),0.2,0.1);
涨停价:=ZTPRICE(REF(C,1),ZTXS);
涨停:=C>=涨停价;
昨连板:=REF(BARSLAST(涨停=0)>=2,1);
开盘换手Z:=DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100;
竞价成交额:=DYNAINFO(15)/10000;
开盘涨幅:=DYNAINFO(4)/DYNAINFO(3)*100;
竞价量:=DYNAINFO(15)/DYNAINFO(4)/100;
竞价量比:=竞价量/REF(MA(V,5),1)*240;
流通市值:=FINANCE(40)/100000000;
XG:=昨连板 AND 流通市值<100 AND 开盘换手Z>=1.5 AND 开盘涨幅>=2.5 AND 竞价量比>=4.5 AND 竞价成交额>=1000 AND A AND H/REF(C,1)>1.03;
ZTXS1:=IF((FINANCE(3)=4 OR (DATE>1200822&&FINANCE(3)=3)),0.2,0.1);
涨停价1:=ZTPRICE(REF(C,1),ZTXS1);
涨停1:=C>=涨停价1;
昨连板1:=REF(BARSLAST(涨停1=0)>=2,1);
开盘换手Z1:=DYNAINFO(15)/DYNAINFO(4)/FINANCE(46)*100;
竞价成交额1:=DYNAINFO(15)/10000;
开盘涨幅1:=DYNAINFO(4)/DYNAINFO(3)*100;
竞价量1:=DYNAINFO(15)/DYNAINFO(4)/100;
竞价量比1:=竞价量1/REF(MA(V,5),1)*240;
流通市值1:=FINANCE(40)/100000000;
主力筹码集中度1:=WINNER(C)*100;
散户筹码集中度1:=(WINNER(C*1.1)-WINNER(C*0.9))*100;
XX:=主力筹码集中度1>80 AND 散户筹码集中度1<20 AND H/REF(C,1)>1.03;
XG0:=昨连板1 AND 流通市值1<100 AND 开盘换手Z1>=1.5 AND 开盘涨幅1>=2.5 AND 竞价量比1>=4.5 AND 竞价成交额1>=1000 AND XX;
A1:=(O>REF(H,1) AND (O-REF(C,1))/REF(C,1)*100>0.01);
开幅:=(OPEN/REF(C,1)-1)*100;
竞价量2:=DYNAINFO(15)/OPEN/100;
竞换手:=竞价量2/CAPITAL*100;
竞量比:=竞价量2/REF(MA(V,5),1)*240;
竞价强:=竞量比*竞换手*开幅*1;
XG1:=竞价强>10 AND A1 AND H/REF(C,1)>1.03;
A2:=(O>REF(H,1) AND (O-REF(C,1))/REF(C,1)*100>0.01);
WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
XYS1:=MA(XYS0,2);
XYS2:=MA(XYS0,1);
XG2:=CROSS(XYS2,XYS1)
AND XYS1>=0
AND XYS1<=1&&CROSS(C,MA(C,20)+0.1)&&BUYVOL>SELLVOL*1.3 AND A2 AND H/REF(C,1)>1.03;
选股:= XG OR XG0 OR XG1 OR XG2;
{通达信去掉*、S、ST}
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
S3:=DYNAINFO(17)>0;
S4:=IF(INBLOCK('科创板'),0,1);
S5:=IF(NAMELIKE('C'),0,1);
S6:=IF(INBLOCK('创业板'),0,1);
S7:=IF(INBLOCK('创业板'),1,0);
S8:=IF(CODELIKE('301'),1,0);
S9:=IF(CODELIKE('301'),0,1);
S10:=IF(NAMELIKE('C'),1,0);
去停ST1:=S1 AND S2 AND S3 AND S4 AND S5 AND S6;
AK:=(O>REF(H,1) AND (O-REF(C,1))/REF(C,1)*100>0.01);
涨幅:=100*(C-REF(C,1))/REF(C,1);
跌幅:=100*(L-REF(C,1))/REF(C,1);
高幅:=100*(H-REF(C,1))/REF(C,1);
昨开幅:=REF((OPEN-REF(CLOSE,1))/REF(CLOSE,1)*100,1);
换手Z:=V*10000/FINANCE(46);
开换手Z:=DYNAINFO(15)/OPEN/FINANCE(46)*100;
昨换手Z:=REF(V*10000/FINANCE(46),1);
开换比:=开换手Z/昨换手Z*100;
倍选:=换手Z>开换手Z*3;{N数字自找};
板块:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
涨停价K:=IF(板块=0.2,ZTPRICE(REF(C,1),0.2),IF(NAMELIKE('S') OR NAMELIKE('*'),ZTPRICE(REF(C,1),0.05),ZTPRICE(REF(C,1),0.1)));
跌停价:=IF(板块=0.2,DTPRICE(REF(C,1),0.2),IF(NAMELIKE('S') OR NAMELIKE('*'),DTPRICE(REF(C,1),0.05),DTPRICE(REF(C,1),0.1)));
去开板:=NOT(OPEN=涨停价K);{NOT(OPEN=涨停价)};
涨停K:=涨停价K=C;
跌停:=跌停价=C;
昨涨停:=REF(涨停K,1);
昨跌停:=REF(跌停,1);
G1:=REF(涨停价K=O AND 涨停价K=C AND L<C,1);
G2:=REF(COUNT(涨停价K=C,2)>=1,1);
去前内板:=(REF(涨停价K=C,1) AND REF(涨停价K<>C,2) AND REF(涨停价K=C,3))=0;
主板进阶:=去停ST1 AND 昨涨停=1 AND 开换手Z>0.895 AND 倍选 AND 去前内板 AND A AND H/REF(C,1)>1.03;
X_1:=DYNAINFO(9);
X_2:=IF(TIME>=91500 AND TIME<=93000,1,0);
X_3:=FINANCE(7)<30000000 AND X_1>600;
X_4:=FINANCE(7)>=30000000 AND FINANCE(7)<60000000 AND X_1>=800;
X_5:=FINANCE(7)>=60000000 AND FINANCE(7)<100000000 AND X_1>=1000;
X_6:=FINANCE(7)>=100000000 AND FINANCE(7)<200000000 AND X_1>=1500;
X_7:=FINANCE(7)>=200000000 AND FINANCE(7)<400000000 AND X_1>=2000;
X_8:=FINANCE(7)>=400000000 AND FINANCE(7)<600000000 AND X_1>=2500;
X_9:=FINANCE(7)>=600000000 AND FINANCE(7)<1000000000 AND X_1>=3000;
X_10:=FINANCE(7)>=1000000000 AND X_1>=6000;
X_11:=CLOSE/LLV(LOW,21)<1.25;
X_12:=100*(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>=2;
XGK:=X_11 AND X_12 AND (X_3 OR X_4 OR X_5 OR X_6 OR X_7 OR X_8 OR X_9 OR X_10);
A1K:= WINNER(C)*100;
涨停1K:=C/REF(C,1)>1.095 AND H=C;
XG1K:=X_11 AND X_12 AND REF(A1K,1)>REF(A1K,2) AND A1K>90 AND REF(涨停1K,1) AND (X_3 OR X_4 OR X_5 OR X_6 OR X_7 OR X_8 OR X_9 OR X_10) AND O>REF(H,1);
X_91:=30;
X_92:=10;
X_93:=VOL/10000*CLOSE/100;
X_94:=REF(CLOSE,1);
X_95:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
X_96:=(CLOSE-X_94)*X_95;
X_97:=SUM(X_96,0);
X_98:=X_97;
X_99:=MA(X_98,X_91);
X_910:=REF(X_98,X_92)=HHV(X_98,2*X_92+1);
X_911:=FILTER(X_910,X_92);
X_912:=BACKSET(X_911,X_92+1);
X_913:=FILTER(X_912,X_92);
TT:=REF(X_98,BARSLAST(X_913));
T1:=FINDLOWBARS(L,0,60,1);
T6:=FINDHIGHBARS(H,T1,120,1);
T8:=BARSLAST(CURRBARSCOUNT=CONST(T6)+1);
KF:=(DYNAINFO(4)/DYNAINFO(3)-1)*100;
LTP:=IF(CAPITAL<100000,100000,CAPITAL);
竞价换手率:=竞价量/LTP*10000;
竞价动能:=KF*竞价换手率;
A91:=FINANCE(7)<120000000;
B91:=FINANCE(7)<300000000 AND FINANCE(7)>120000000;
C91:=FINANCE(7)<500000000 AND FINANCE(7)>300000000;
D91:=FINANCE(7)<800000000 AND FINANCE(7)>500000000;
E91:=FINANCE(7)<1300000000 AND FINANCE(7)>800000000;
A9:= DYNAINFO(14)>0.006 AND DYNAINFO(17)>10 AND V*200/FROMOPEN/REF(MA(V,5),1)>3;
B9:=VOL;
S91:=LOW>(REF(HIGH,2)+0.001) AND H>REF(C,1) AND H>MA(C,20)*1.20 AND V*200/FROMOPEN/REF(MA(V,5),1)>3;
竞价首板9:=REF(C/REF(C,1)<1.09,1) AND (S91 OR A91 OR B91 OR C91 OR D91 OR E91 ) AND X_98>TT AND H>REF(H,T8) AND H>MA(REF(HHV(C,30),1),2)AND DYNAINFO(15)>10000000 AND 竞价动能>50;
A2K:=(O>REF(H,1) AND (O-REF(C,1))/REF(C,1)*100>0.01);
X_C1:=CLOSE/REF(CLOSE,1)>=1.0982 AND CLOSE/REF(CLOSE,1)<=1.102 OR CLOSE/REF(CLOSE,1)>=1.1998;
X_C2:=IF(AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100>100,100,AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100);
X_C3:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60));
X_C4:=X_C2=100 AND X_C3=0;
X_C5:=IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3;
X_C6:=EMA((X_C5-MA(X_C5,84.027))/(0.015*AVEDEV(X_C5,84.027)),2.0332);
X_C7:=X_C6;
X_C8:=HHV(MA(X_C6,5),21);
X_C9:=X_C7>X_C8;
X_C10:=CLOSE*VOL;
X_C11:=EMA((EMA(X_C10,3)/EMA(VOL,3)+EMA(X_C10,6)/EMA(VOL,6)+EMA(X_C10,12)/EMA(VOL,12)+EMA(X_C10,24)/EMA(VOL,24))/4,13);
X_C12:=1.13*X_C11;
X_C13:=REF(CLOSE,1)*1.1-CLOSE<0.01 AND HIGH=CLOSE;
X_C14:=X_C9 AND CROSS(CLOSE,X_C12) AND X_C4;
X_C15:=WINNER(CLOSE/1.35)*100;
X_C16:=CROSS(X_C15,30) AND X_C1 AND X_C4;
XG4:=X_C16 AND A2 AND H/REF(C,1)>1.03;
众仙围妖真龙版:主板进阶 OR XG1 OR 竞价首板9 OR XG4 AND XG OR XG0 OR XG1 OR XG2 AND KF<8 AND GL;