去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 去除科创板;
涨停1:=C/REF(C,1)>1.093 AND C=H;
涨停2:=COUNT(REF(涨停1,1),4)=0;
均价:=(2*C+(C+H+L+O)/4+O)/4;
JJR1:=(2*L+3*均价)/5;
JJR2:=(2*H+3*均价)/5;
JJR3:=Abs(均价-MA((JJR1+JJR2)/2,20))/MA((JJR1+JJR2)/2,20);
JJR4:=DMA(均价,JJR3);
JJR5:=(1+7/100)*JJR4,COLORCYAN;
打首板1:= 去 AND 涨停2 AND crOSS(C,JJR5) AND CROSS(C,EMA(REF(HHV(C,10),1),3)) AND C/REF(C,1)>1.095 AND O/REF(C,1)<1.05 AND C>O AND REF(C,1)/REF(C,2)<1.05,COLORCYAN;
打首板2:= 去 AND 涨停2 AND C>(LLV(REF(LOW,1),2) + ((HHV(REF(HIGH,1),2) - LLV(REF(LOW,1),2)) / 2)) AND C/REF(C,1)>1.095 AND CROSS(C,EMA(REF(HHV(C,40),1),3)) AND O/REF(C,1)<1.05 AND C>O AND REF(C,1)/REF(C,2)<1.05;
HJHJK1:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 6) / 100));
HJHJK2:=((((MA(CLOSE,3) + MA(CLOSE,6)) + MA(CLOSE,12)) + MA(CLOSE,24)) / 4);
HJHJK3:=(LLV(REF(LOW,1),2) + ((HHV(REF(HIGH,1),2) - LLV(REF(LOW,1),2)) / 2));
HJHJK4:=(((C > HJHJK1) AND (C >HJHJK2)) AND (C >HJHJK3)) AND REF(C,1)/REF(C,2)<1.04;
HJHJK5:=EMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*4,5)*100;
HJHJK6:=REF(HJHJK5,1)>50 AND HJHJK5-REF(HJHJK5,1)>40;
HJHJK7:=REF(HJHJK4,1)=0 AND HJHJK4 AND REF(HJHJK6,1)=0 AND HJHJK6;
打首板:=打首板1 OR 打首板2;
超级打首板:打首板 AND HJHJK7;