HJ_1:=vol< MA(VOL,5) AND MA(VOL,5)< MA(VOL,55);
HJ_2:=CLOSE/REF(CLOSE,1)>1.028;
HJ_3:=MA(CLOSE,10)>CLOSE*1.05 AND MA(CLOSE,10)< CLOSE*1.1;
HJ_4:=MA(CLOSE,60)>CLOSE*1.28;
HJ_5:=HJ_1 AND HJ_2 AND HJ_3 AND HJ_4;
HJ_6:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);
HJ_7:=REF(HJ_6,1)>13 AND REF(HJ_6,1)/HJ_6>1.23 AND CLOSE/REF(CLOSE,1)>1.03;
HJ_8:=FILTER(IF(HJ_7 AND REF(CLOSE,1)<=COST(1),1,0) AND CLOSE!=LOW,5);
HJ_9:=CLOSE/REF(CLOSE,14)<=1.1;
HJ_10:=CLOSE/MA(CLOSE,40)*100< 78;
HJ_11:=CLOSE/MA(CLOSE,60)*100< 74;
HJ_12:=HIGH>LOW*1.051;
HJ_13:=HJ_12 AND COUNT(HJ_12,5)>1;
HJ_14:=IF(HJ_13 AND (HJ_10 OR HJ_11),2,0);
HJ_15:=CLOSE/REF(CLOSE,25)<=1.1;
HJ_16:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(Abs(CLOSE-REF(CLOSE,2)),7,1)*100< 15;
HJ_17:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
HJ_18:=SMA(HJ_17,2,1);
HJ_19:=IF(HJ_18>REF(HJ_18,1) AND REF(HJ_18,1)< REF(HJ_18,2) AND HJ_18< 23,1.5,0);
HJ_20:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)< (-0.07);
HJ_21:=(INDEXC-HHV(INDEXC,8))/HHV(INDEXC,8)< (-0.05) AND MA(INDEXA,125)/MA(INDEXV,125)/(MA(INDEXA,5)/MA(INDEXV,5))>1.12;
HJ_22:=BArslAST(HJ_21)< 10;
HJ_23:=MA(CLOSE,27);
HJ_24:=(CLOSE-HJ_23)/HJ_23*100;
HJ_25:=MA(HJ_24,2);
HJ_26:=BARSLAST(crOSS((-10),HJ_25)=1);
HJ_27:=HJ_25< (-10) AND HJ_26>3;
HJ_28:=ABS(IF(HJ_27,HJ_25,0));
HJ_29:=HJ_28>0;
HJ_30:=MA(CLOSE,80)-MA(CLOSE,13)/3;
HJ_31:=MA((CLOSE-HJ_30)/HJ_30,1);
HJ_32:=EMA(HJ_31,12)*0.5;
HJ_33:=EMA(HJ_31,3);
HJ_34:=ABS(IF(LLV(HJ_33-HJ_32,12)>0,0,1));
HJ_35:=CLOSE/(EMA(EMA((CLOSE+LOW+HIGH)/3,3),26)*0.9)< 0.95;
HJ_36:=MA((CLOSE-MA(CLOSE,21))/MA(CLOSE,21),3)*100;
HJ_37:=HJ_36< (-15);
HJ_38:=(CLOSE-MA(CLOSE,28))/MA(CLOSE,28)*100< (-23);
HJ_39:=HJ_15 AND HJ_14 AND HJ_16 AND HJ_19;
HJ_40:=HJ_37>0 AND HJ_35>0 AND HJ_34>0 AND HJ_29>0 AND HJ_20>0 AND HJ_22>0 AND HJ_38>0 AND CLOSE>REF(CLOSE,1);
HJ_41:=HJ_40 AND HJ_39;
HJ_42:=REF(CLOSE,1)/REF(CLOSE,2)< 0.999;
HJ_43:=CLOSE/REF(CLOSE,1)>1.011 AND VOL*1.1< REF(VOL,1);
HJ_44:=REF(CLOSE,1)*1.015< REF(OPEN,1) AND CLOSE>OPEN*1.015;
HJ_45:=CLOSE/REF(CLOSE,1)>1.0989;
HJ_46:=HJ_43 AND HJ_42 AND HJ_44 AND NOT(HJ_45);
HJ_47:=IF(HJ_46,0.5,0) AND kd.D< 20;
S1:=IF(NAMELIKE('S'),0,1);
S2:=IF(NAMELIKE('*'),0,1);
S3:=DYNAINFO(17)>0;
S4:=IF(CODELIKE('688'),0,1);
去停牌:=NOT(DYNAINFO(4)=0);
去停ST:=S1 AND S2 AND S3 AND S4 AND 去停牌 AND CLOSE< 26;
X7P:=HJ_5+HJ_8+HJ_41+HJ_47>=2 AND 去停ST AND (C/REF(C,1)>1.043);
VAR2N:=LLV(LOW,3)<=LLV(LOW,60);
VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
深挖:(IF(VAR2N AND (C/REF(C,1)>1.043) AND VAR3N,90,0) AND X7P)*19,LINETHICK5,COLORWHITE;