X_1:=MA(CLOSE,46)+MA(CLOSE,46)*10/100;
X_2:=MA(CLOSE,23)+MA(CLOSE,23)*5/100;
X_3:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_4:=MA(HIGH,5);
X_5:=CLOSE/REF(CLOSE,1)>1.06;
X6:=MAX(X_1,MAX(X_2,MAX(X_3,X_4)));
X7:=MIN(X_1,MIN(X_2,MIN(X_3,X_4)));
X8:=(X6-X7)/X7*100;
X9:=CROSS(X8,5);
X10:=X6>REF(X6,1) AND REF(X6,1)>REF(X6,2) AND REF(X6,2)>REF(X6,3) AND REF(X6,3)>REF(X6,4);
X11:=X7>REF(X7,1) AND REF(X7,1)>REF(X7,2) AND REF(X7,2)>REF(X7,3) AND REF(X7,3)>REF(X7,4) ;
X12:=X10 AND X11;
X13:= X9 AND X12;
X14:=MA(C,60);
X15:=MA(C,125);
X16:=X14>REF(X14,1)AND REF(X14,1)>REF(X14,2)AND REF(X14,2)>=REF(X14,3)AND REF(X14,3)>=REF(X14,4);
X17:=X14>X15;
X18:=CROSS(X14,X15);
X19:=X17 OR X18;
X20:=X19 AND X16;
XDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
XDEA:=EMA(XDIF,9);
XMACD:=(XDIF-XDEA)*2;
X21:=CROSS(XDIF,XDEA);
X22:=BARSLAST(X21);
X23:=X22<6;
X24:=X13 AND X20 AND X23;
AC:=HHV(C,220);
AB:=C;
X25:=AB=AC;
X26:=(X25=1 OR REF(X25,1)=1 OR REF(X25,2)=1);
TYP:=(HIGH+LOW+CLOSE)/3;
优化CCI:=EMA((TYP-MA(TYP,36))/(0.015*AVEDEV(TYP,36)),30);
X27:((X24 AND X26)OR (X26 AND REF(X24,1))) AND 优化cci>100;
九毛八公式解读
X_1赋值:收盘价的46日简单移动平均+收盘价的46日简单移动平均*10/100 X_2赋值:收盘价的23日简单移动平均+收盘价的23日简单移动平均*5/100 X_3赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4 X_4赋值:最高价的5日简单移动平均 X_5赋值:收盘价/1日前的收盘价>1.06 X6赋值:X_1和X_2和X_3和X_4的较大值的较大值的较大值 X7赋值:X_1和X_2和X_3和X_4的较小值的较小值的较小值 X8赋值:(X6-X7)/X7*100 X9赋值:X8上穿5 X10赋值:X6>1日前的X6 AND 1日前的X6>2日前的X6 AND 2日前的X6>3日前的X6 AND 3日前的X6>4日前的X6 X11赋值:X7>1日前的X7 AND 1日前的X7>2日前的X7 AND 2日前的X7>3日前的X7 AND 3日前的X7>4日前的X7 X12赋值:X10 AND X11 X13赋值: X9 AND X12 X14赋值:收盘价的60日简单移动平均 X15赋值:收盘价的125日简单移动平均 X16赋值:X14>1日前的X14AND 1日前的X14>2日前的X14AND 2日前的X14>=3日前的X14AND 3日前的X14>=4日前的X14 X17赋值:X14>X15 X18赋值:X14上穿X15 X19赋值:X17 OR X18 X20赋值:X19 AND X16 XDIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 XDEA赋值:XDIF的9日指数移动平均 XMACD赋值:(XDIF-XDEA)*2 X21赋值:XDIF上穿XDEA X22赋值:上次X21距今天数 X23赋值:X22<6 X24赋值:X13 AND X20 AND X23 AC赋值:220日内收盘价的最高值 AB赋值:收盘价 X25赋值:AB=AC X26赋值:(X25=1 OR 1日前的X25=1 OR 2日前的X25=1) TYP赋值:(最高价+最低价+收盘价)/3 优化CCI赋值:(TYP-TYP的36日简单移动平均)/(0.015*TYP的36日平均绝对偏差)的30日指数移动平均 输出X27:((X24 AND X26)OR (X26 AND 1日前的X24)) AND 优化CCI>100