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) ANDKD.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;
九毛八公式解读
HJ_1赋值:成交量(手)< 成交量(手)的5日简单移动平均 AND 成交量(手)的5日简单移动平均< 成交量(手)的55日简单移动平均 HJ_2赋值:收盘价/1日前的收盘价>1.028 HJ_3赋值:收盘价的10日简单移动平均>收盘价*1.05 AND 收盘价的10日简单移动平均< 收盘价*1.1 HJ_4赋值:收盘价的60日简单移动平均>收盘价*1.28 HJ_5赋值:HJ_1 AND HJ_2 AND HJ_3 AND HJ_4 HJ_6赋值:(收盘价-收盘价的13日[1日权重]移动平均)/收盘价的13日[1日权重]移动平均*(-100) HJ_7赋值:1日前的HJ_6>13 AND 1日前的HJ_6/HJ_6>1.23 AND 收盘价/1日前的收盘价>1.03 HJ_8赋值:如果HJ_7ANDREF(收盘价,1)<=获利盘为1%的成本分布,返回1,否则返回0ANDCLOSE不等于最低价的5日过滤 HJ_9赋值:收盘价/14日前的收盘价<=1.1 HJ_10赋值:收盘价/收盘价的40日简单移动平均*100< 78 HJ_11赋值:收盘价/收盘价的60日简单移动平均*100< 74 HJ_12赋值:最高价>最低价*1.051 HJ_13赋值:HJ_12 AND 统计5日中满足HJ_12的天数>1 HJ_14赋值:如果HJ_13AND(HJ_10ORHJ_11),返回2,否则返回0 HJ_15赋值:收盘价/25日前的收盘价<=1.1 HJ_16赋值:收盘价-2日前的收盘价和0的较大值的7日[1日权重]移动平均/收盘价-2日前的收盘价的绝对值的7日[1日权重]移动平均*100< 15 HJ_17赋值:(收盘价-8日内最低价的最低值)/(8日内最高价的最高值-8日内最低价的最低值)*100 HJ_18赋值:HJ_17的2日[1日权重]移动平均 HJ_19赋值:如果HJ_18>1日前的HJ_18ANDREF(HJ_18,1)<2日前的HJ_18ANDHJ_18<23,返回1.5,否则返回0 HJ_20赋值:(收盘价-收盘价的58日简单移动平均)/收盘价的58日简单移动平均< (-0.07) HJ_21赋值:(大盘的收盘价-8日内大盘的收盘价的最高值)/8日内大盘的收盘价的最高值< (-0.05) AND 大盘的成交额的125日简单移动平均/大盘的成交量的125日简单移动平均/(大盘的成交额的5日简单移动平均/大盘的成交量的5日简单移动平均)>1.12 HJ_22赋值:上次HJ_21距今天数< 10 HJ_23赋值:收盘价的27日简单移动平均 HJ_24赋值:(收盘价-HJ_23)/HJ_23*100 HJ_25赋值:HJ_24的2日简单移动平均 HJ_26赋值:上次(-10)上穿HJ_25=1距今天数 HJ_27赋值:HJ_25< (-10) AND HJ_26>3 HJ_28赋值:如果HJ_27,返回HJ_25,否则返回0的绝对值 HJ_29赋值:HJ_28>0 HJ_30赋值:收盘价的80日简单移动平均-收盘价的13日简单移动平均/3 HJ_31赋值:(收盘价-HJ_30)/HJ_30的1日简单移动平均 HJ_32赋值:HJ_31的12日指数移动平均*0.5 HJ_33赋值:HJ_31的3日指数移动平均 HJ_34赋值:如果12日内HJ_33-HJ_32的最低值>0,返回0,否则返回1的绝对值 HJ_35赋值:收盘价/((收盘价+最低价+最高价)/3的3日指数移动平均的26日指数移动平均*0.9)< 0.95 HJ_36赋值:(收盘价-收盘价的21日简单移动平均)/收盘价的21日简单移动平均的3日简单移动平均*100 HJ_37赋值:HJ_36< (-15) HJ_38赋值:(收盘价-收盘价的28日简单移动平均)/收盘价的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 收盘价>1日前的收盘价 HJ_41赋值:HJ_40 AND HJ_39 HJ_42赋值:1日前的收盘价/2日前的收盘价< 0.999 HJ_43赋值:收盘价/1日前的收盘价>1.011 AND 成交量(手)*1.1< 1日前的成交量(手) HJ_44赋值:1日前的收盘价*1.015< 1日前的开盘价 AND 收盘价>开盘价*1.015 HJ_45赋值:收盘价/1日前的收盘价>1.0989 HJ_46赋值:HJ_43 AND HJ_42 AND HJ_44 AND 取反 HJ_47赋值:如果HJ_46,返回0.5,否则返回0 AND 随机指标KD的D< 20 S1赋值:如果模糊匹配品种名称,返回0,否则返回1 S2赋值:如果模糊匹配品种名称,返回0,否则返回1 S3赋值:量比>0 S4赋值:如果模糊匹配品种代码,返回0,否则返回1 去停牌赋值:取反 去停ST赋值:S1 AND S2 AND S3 AND S4 AND 去停牌 AND 收盘价< 26 X7P赋值:HJ_5+HJ_8+HJ_41+HJ_47>=2 AND 去停ST AND (收盘价/1日前的收盘价>1.043) VAR2N赋值:3日内最低价的最低值<=60日内最低价的最低值 VAR3N赋值: 收阳线AND (收盘价/开盘价>1.03 OR 收盘价>1.03*1日前的收盘价) 输出深挖:(如果VAR2NAND(收盘价/1日前的收盘价>1.043)ANDVAR3N,返回90,否则返回0 AND X7P)*19,线宽为5,画白色