X_1:=REF(CLOSE,1);
X_2:=(X_1-CLOSE)*100/X_1;
X_3:=X_2>4 AND Abs(CLOSE-OPEN)/CLOSE>0.05;
X_4:=CLOSE<OPEN AND CLOSE<0.98*MA(CLOSE,5) AND ABS(CLOSE-OPEN)/CLOSE>0.03;
X_5:=X_4 AND (MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>=1/3 AND X_2>=3;
X_6:=CONST(REF(LOW,BARSLAST(X_5>0)));
X_7:=0.033;
X_8:=ABS(X_6-LOW)<=X_7 OR ABS(X_6-MIN(OPEN,CLOSE))<=X_7 OR ABS(X_6-HIGH)<=X_7 OR ABS(X_6-MAX(OPEN,CLOSE))<=X_7;
X_9:=COUNT(X_8,30)>=1;
X_10:=VOL<=0.505*REF(VOL,1);
X_11:=REF(X_9,1) AND X_10 AND COUNT(X_3,10);
X_12:=SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,5)<1;
X_13:=(HIGH-LOW)/LOW*100>5 AND (MIN(OPEN,CLOSE)-LOW)/LOW*100>5;
X_14:=X_12 AND X_13;
X_15:=IF(CODELIKE(1),0,1);
X_16:=IF(CODELIKE(2),0,1);
X_17:=IF(CODELIKE(3),0,1);
X_18:=IF(CODELIKE(4),0,1);
X_19:=COUNT(X_11,3)>1;
XG:X_10 OR X_3 OR X_8 AND X_15 AND X_16 AND X_17 AND X_18 AND COUNT(X_10,3)>1;
九毛八公式解读
X_1赋值:1日前的收盘价 X_2赋值:(X_1-收盘价)*100/X_1 X_3赋值:X_2>4 AND 收盘价-开盘价的绝对值/收盘价>0.05 X_4赋值:收阴线ANDSE 收盘价<0.98*收盘价的5日简单移动平均 AND 收盘价-开盘价的绝对值/收盘价>0.03 X_5赋值:X_4 AND (收盘价和开盘价的较小值-最低价)/(最高价-最低价)>=1/3 AND X_2>=3 X_6赋值:上次X_5>0距今天数日前的最低价的最后一日取值设为常数 X_7赋值:0.033 X_8赋值:X_6-最低价的绝对值<=X_7 OR X_6-开盘价和收盘价的较小值的绝对值<=X_7 OR X_6-最高价的绝对值<=X_7 OR X_6-开盘价和收盘价的较大值的绝对值<=X_7 X_9赋值:统计30日中满足X_8的天数>=1 X_10赋值:成交量(手)<=0.505*1日前的成交量(手) X_11赋值:1日前的X_9 AND X_10 AND 统计10日中满足X_3的天数 X_12赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100的5日累和<1 X_13赋值:(最高价-最低价)/最低价*100>5 AND (开盘价和收盘价的较小值-最低价)/最低价*100>5 X_14赋值:X_12 AND X_13 X_15赋值:如果模糊匹配品种代码,返回0,否则返回1 X_16赋值:如果模糊匹配品种代码,返回0,否则返回1 X_17赋值:如果模糊匹配品种代码,返回0,否则返回1 X_18赋值:如果模糊匹配品种代码,返回0,否则返回1 X_19赋值:统计3日中满足X_11的天数>1 输出XG:X_10 OR X_3 OR X_8 AND X_15 AND X_16 AND X_17 AND X_18 AND 统计3日中满足X_10的天数>1