X_1:=2;
X_2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
X_3:=COUNT(X_2,X_1)=1 AND X_2;
X_4:=VOL/700000000;
X_5:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
X_6:=2.5*MAX(X_4,X_5);
X_7:=DMA(CLOSE,X_6);
X_8:=SMA(20*(X_7/REF(X_7,1)-1),2,1);
X_9:=EMA(X_8,2);
X_10:=0.24;
X_11:=CLOSE>=REF(CLOSE,1);
X_12:=IF(X_8>X_10 AND X_9>=0.005 AND X_11,1,0);
X_13:=CROSS(X_12,0.5) AND COUNT(X_12>0.5,10)=1;
X_14:=KDJ.J-REF(KDJ.J,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND MACD.macd>0 AND MACD.DEA>0;
X_15:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
X_16:=FILTER(X_15,28)*100 AND LOW>REF(CLOSE,1)*0.93;
X_17:=X_14 OR X_16 AND X_13;
X_18:=9;
X_19:=10;
X_20:=CLOSE/REF(CLOSE,1)>1+0.01*X_18;
X_21:=EXIST(CLOSE/REF(CLOSE,1)>1+0.01*X_18,X_19);
X_22:=CLOSE/REF(CLOSE,1)>1+0.01*X_18;
X_23:=IF(X_20+X_21+X_22=3,1,0);
X_24:=(HIGH-CLOSE)/(CLOSE-OPEN)<0.33;
X_25:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND (OPEN-LOW)/(CLOSE-OPEN)>=1.48 AND LOW<REF(LOW,1) AND LOW<REF(LOW,2);
X_26:=CLOSE/REF(CLOSE,1)-1>=0.08;
X_27:=VOL>REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1) AND CLOSE/REF(CLOSE,1)-1>=0.049 AND X_24;
X_28:=CLOSE/REF(CLOSE,1)-1>=0.0502 AND CLOSE>REF(CLOSE,1) AND VOL>REF(VOL,1) AND VOL>REF(VOL,1)*2.5 AND X_24;
X_29:=EMA(2.055*EMA(EMA(HIGH,34),34)-EMA(EMA(LOW,34),34),5);
X_30:=IF(FILTER(X_27 OR X_28 OR X_25 OR X_26 AND X_29>CLOSE,34),1,0) AND X_23;
X_31:=X_17 OR X_30;
X_32:=X_31-X_31*0.14 AND X_3;
X_33:=HIGH=CLOSE;
X_34:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>=0.93 AND X_33;
X_35:=BARSLAST(X_32);
买入二板:X_35 AND X_34 AND X_35<=1;
九毛八公式解读
X_1赋值:2 X_2赋值:收盘价>=计算涨停价 X_3赋值:统计X_1日中满足X_2的天数=1 AND X_2 X_4赋值:成交量(手)/700000000 X_5赋值:1.1*(最高价和1日前的收盘价的较大值/最低价和1日前的收盘价的较小值-1) X_6赋值:2.5*X_4和X_5的较大值 X_7赋值:以X_6为权重收盘价的动态移动平均 X_8赋值:20*(X_7/1日前的X_7-1)的2日[1日权重]移动平均 X_9赋值:X_8的2日指数移动平均 X_10赋值:0.24 X_11赋值:收盘价>=1日前的收盘价 X_12赋值:如果X_8>X_10ANDX_9>=0.005ANDX_11,返回1,否则返回0 X_13赋值:X_12上穿0.5 AND 统计10日中满足X_12>0.5的天数=1 X_14赋值:KDJ的J-1日前的KDJ的J>30 AND 收盘价/1日前的收盘价>1.043 AND 平滑异同平均线的MACD>0 AND 平滑异同平均线的DEA>0 X_15赋值:收盘价/1日前的收盘价>1.048 AND 收盘价=最高价 AND 成交量(手)的4日线性回归预测值位于0.2*成交量(手)的12日线性回归预测值和2.1*成交量(手)的12日线性回归预测值之间 X_16赋值:X_15的28日过滤*100 AND 最低价>1日前的收盘价*0.93 X_17赋值:X_14 OR X_16 AND X_13 X_18赋值:9 X_19赋值:10 X_20赋值:收盘价/1日前的收盘价>1+0.01*X_18 X_21赋值:最近X_19日存在收盘价/1日前的收盘价>1+0.01*X_18 X_22赋值:收盘价/1日前的收盘价>1+0.01*X_18 X_23赋值:如果X_20+X_21+X_22=3,返回1,否则返回0 X_24赋值:(最高价-收盘价)/(收盘价-开盘价)<0.33 X_25赋值:收盘价/1日前的收盘价-1>=0.0502 AND 收盘价>1日前的收盘价 AND (开盘价-最低价)/(收盘价-开盘价)>=1.48 AND 最低价<1日前的最低价 AND 最低价<2日前的最低价 X_26赋值:收盘价/1日前的收盘价-1>=0.08 X_27赋值:成交量(手)>1日前的成交量(手)*1.9 AND 收盘价>1日前的收盘价 AND 收盘价/1日前的收盘价-1>=0.049 AND X_24 X_28赋值:收盘价/1日前的收盘价-1>=0.0502 AND 收盘价>1日前的收盘价 AND 成交量(手)>1日前的成交量(手) AND 成交量(手)>1日前的成交量(手)*2.5 AND X_24 X_29赋值:2.055*最高价的34日指数移动平均的34日指数移动平均-最低价的34日指数移动平均的34日指数移动平均的5日指数移动平均 X_30赋值:如果X_27ORX_28ORX_25ORX_26ANDX_29>收盘价的34日过滤,返回1,否则返回0 AND X_23 X_31赋值:X_17 OR X_30 X_32赋值:X_31-X_31*0.14 AND X_3 X_33赋值:最高价=收盘价 X_34赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>=0.93 AND X_33 X_35赋值:上次X_32距今天数 输出买入二板:X_35 AND X_34 AND X_35<=1