N:=80;
QS:=0;
KP:=0;
CG:=0;
X_1:=EMA(CLOSE,3);
X_2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
X_3:=CROSS(X_1,X_2);
X_4:=CROSS(X_2,X_1);
X_5:=COUNT(X_4,BArslAst(X_3))=0;
X_6:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_7:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_8:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_9:=X_6+100;
X_10:=X_7+100;
X_11:=X_8+100;
X_12:=X_10;
X_13:=X_11;
X_14:=X_9;
X_15:=X_13>X_14 AND X_12>X_14 OR (X_13>X_14 AND X_12<X_14 AND NOT(CROSS(X_2,X_1))) OR X_5;
X_16:=100-100*(HHV(HIGH,5*8)-CLOSE)/(HHV(HIGH,5*8)-LLV(LOW,5*8));
X_17:=X_16>=N;
X_18:=(CLOSE*2+HIGH+LOW)/4;
X_19:=EMA(X_18,13)-EMA(X_18,34);
X_20:=EMA(X_19,5);
X_21:=2*(X_19-X_20)*3.8;
X_22:=X_21>=0;
X_23:=Abs(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
X_24:=DMA((2.15*CLOSE+LOW+HIGH)/4,X_23);
X_25:=IF(DATE>=1230328,0,1);
X_26:=EMA(X_24,200)*1.118;
X_27:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>8;
X_28:=CROSS(CLOSE,X_26) AND X_27;
X_29:=X_28*X_25;
X_30:=REF(CLOSE,1);
X_31:=EMA(HHV(HIGH,1),8);
X_32:=EMA(CLOSE,8);
X_33:=X_32<REF(X_32,1) AND CLOSE<X_32;
X_34:=IF(X_31<REF(X_31,1) OR X_33,1,0);
X_35:=IF(DATE>=1230328,0,1);
X_36:=SMA(MAX(CLOSE-X_30,0),2,1)/SMA(ABS(CLOSE-X_30),2,1)*100;
X_37:=45;
X_38:=20;
X_39:=X_36<X_37 AND REF(X_36,1)>X_37;
X_40:=X_36<X_38 AND REF(X_36,1)>X_38;
X_41:=(COUNT(X_34=1,4)=3 AND X_34=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.085)*89>=89 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.085 AND (REF(X_40,1) OR REF(X_39,1)))*X_35;
X_42:=IF(CLOSE>REF(CLOSE,1),88,0);
X_43:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND X_42>0,91,0);
X_44:=FILTER(X_43>90,45) OR FILTER(X_43>90,35)*X_35;
X_45:=IF(CG=0,X_29 OR X_41 OR X_44 AND (X_17 AND X_22),X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_46:=IF(QS=0,X_29 OR X_41 OR X_44 AND (X_15 AND X_22),X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_47:=IF(KP=0,X_29 OR X_41 OR X_44 AND (X_15 AND X_17),X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_48:=IF(KP=0 AND QS=0 AND CG=0,X_29 OR X_41 OR X_44,X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_49:=IF(KP=0 AND QS=0,X_29 OR X_41 OR X_44 AND X_15,X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_50:=IF(KP=0 AND CG=0,X_29 OR X_41 OR X_44 AND QS,X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
X_51:=IF(QS=0 AND CG=0,X_29 OR X_41 OR X_44 AND KP,X_29 OR X_41 OR X_44 AND (X_15 AND X_17 AND X_22));
神龙伏牛:(X_45 OR X_46 OR X_47 OR X_48 OR X_49 OR X_50 OR X_51)*X_35,COLORMAGENTA;
九毛八公式解读
N赋值:80 QS赋值:0 KP赋值:0 CG赋值:0 X_1赋值:收盘价的3日指数移动平均 X_2赋值:收盘价的21日线性回归斜率*20+收盘价的55日指数移动平均 X_3赋值:X_1上穿X_2 X_4赋值:X_2上穿X_1 X_5赋值:统计上次X_3距今天数日中满足X_4的天数=0 X_6赋值:(-100)*(34日内最高价的最高值-收盘价)/(34日内最高价的最高值-34日内最低价的最低值)的19日简单移动平均 X_7赋值:(-100)*(14日内最高价的最高值-收盘价)/(14日内最高价的最高值-14日内最低价的最低值) X_8赋值:(-100)*(34日内最高价的最高值-收盘价)/(34日内最高价的最高值-34日内最低价的最低值)的4日指数移动平均 X_9赋值:X_6+100 X_10赋值:X_7+100 X_11赋值:X_8+100 X_12赋值:X_10 X_13赋值:X_11 X_14赋值:X_9 X_15赋值:X_13>X_14 AND X_12>X_14 OR (X_13>X_14 AND X_12=N X_18赋值:(收盘价*2+最高价+最低价)/4 X_19赋值:X_18的13日指数移动平均-X_18的34日指数移动平均 X_20赋值:X_19的5日指数移动平均 X_21赋值:2*(X_19-X_20)*3.8 X_22赋值:X_21>=0 X_23赋值:((3.48*收盘价+最高价+最低价)/4-收盘价的23日指数移动平均)/收盘价的23日指数移动平均的绝对值 X_24赋值:以X_23为权重(2.15*收盘价+最低价+最高价)/4的动态移动平均 X_25赋值:如果日期>=1230328,返回0,否则返回1 X_26赋值:X_24的200日指数移动平均*1.118 X_27赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>8 X_28赋值:收盘价上穿X_26 AND X_27 X_29赋值:X_28*X_25 X_30赋值:1日前的收盘价 X_31赋值:1日内最高价的最高值的8日指数移动平均 X_32赋值:收盘价的8日指数移动平均 X_33赋值:X_32<1日前的X_32 AND 收盘价 =1230328,返回0,否则返回1 X_36赋值:收盘价-X_30和0的较大值的2日[1日权重]移动平均/收盘价-X_30的绝对值的2日[1日权重]移动平均*100 X_37赋值:45 X_38赋值:20 X_39赋值:X_36 X_37 X_40赋值:X_36 X_38 X_41赋值:(统计4日中满足X_34=1的天数=3 AND X_34=0 AND 收阳线ANDN (收盘价-1日前的收盘价)/1日前的收盘价>0.085)*89>=89 OR ((收盘价-1日前的收盘价)/1日前的收盘价>0.085 AND (1日前的X_40 OR 1日前的X_39))*X_35 X_42赋值:如果收盘价>1日前的收盘价,返回88,否则返回0 X_43赋值:如果收盘价/1日前的收盘价>1.05ANDHIGH/收盘价<1.01ANDX_42>0,返回91,否则返回0 X_44赋值:X_43>90的45日过滤 OR X_43>90的35日过滤*X_35 X_45赋值:如果CG=0,返回X_29ORX_41ORX_44AND(X_17ANDX_22),否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_46赋值:如果QS=0,返回X_29ORX_41ORX_44AND(X_15ANDX_22),否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_47赋值:如果KP=0,返回X_29ORX_41ORX_44AND(X_15ANDX_17),否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_48赋值:如果KP=0ANDQS=0ANDCG=0,返回X_29ORX_41ORX_44,否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_49赋值:如果KP=0ANDQS=0,返回X_29ORX_41ORX_44ANDX_15,否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_50赋值:如果KP=0ANDCG=0,返回X_29ORX_41ORX_44ANDQS,否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) X_51赋值:如果QS=0ANDCG=0,返回X_29ORX_41ORX_44ANDKP,否则返回X_29ORX_41ORX_44AND(X_15ANDX_17ANDX_22) 输出神龙伏牛:(X_45 OR X_46 OR X_47 OR X_48 OR X_49 OR X_50 OR X_51)*X_35,画洋红色