{首板启动寻妖}
去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;
JCR1:=(2*L+3*均价)/5;
JCR2:=(2*H+3*均价)/5;
JCR3:=ABS(均价-MA((JCR1+JCR2)/2,20))/MA((JCR1+JCR2)/2,20);
JCR4:=DMA(均价,JCR3);
JCR5:=(1+7/100)*JCR4,COLORCYAN;
首板1:= 去 AND 涨停2 AND CROSS(C,JCR5) 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;
JJCR1:=(MA(CLOSE,25) + ((MA(CLOSE,25) * 6) / 100));
JJCR2:=((((MA(CLOSE,3) + MA(CLOSE,6)) + MA(CLOSE,12)) + MA(CLOSE,24)) / 4);
JJCR3:=(LLV(REF(LOW,1),2) + ((HHV(REF(HIGH,1),2) - LLV(REF(LOW,1),2)) / 2));
JJCR4:=(((C > JJCR1) AND (C >JJCR2)) AND (C >JJCR3)) AND REF(C,1)/REF(C,2)<1.04;
JJCR5:=EMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*4,5)*100;
JJCR6:=REF(JJCR5,1)>50 AND JJCR5-REF(JJCR5,1)>40;
JJCR7:=REF(JJCR4,1)=0 AND JJCR4 AND REF(JJCR6,1)=0 AND JJCR6;
首板:=首板1 OR 首板2;
启动:首板 AND JJCR7,COLORRED,LINETHICK2;