通达信金月龙X副图指标公式源码
以下是通达信金月龙X副图指标公式源码:
X_1:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
X_2:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.1,0.91) AND LOW<REF(CLOSE,3) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,2)/REF(CLOSE,3)>1.05 AND REF(HIGH,2)/MAX(REF(CLOSE,2),REF(OPEN,2))>1.05) AND NOT(REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.05 AND REF(OPEN,2)/REF(CLOSE,3)>1.05);
X_3:=X_1 AND X_2;
X_4:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
X_5:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,4),1.1,0.91) AND LOW<REF(CLOSE,4) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,3)/REF(CLOSE,4)>1.07 AND REF(HIGH,3)/MAX(REF(CLOSE,3),REF(OPEN,3))>1.07) AND NOT(REF(CLOSE,3)<REF(OPEN,3) AND REF(OPEN,3)/REF(CLOSE,3)>1.03 AND REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.04);
X_6:=X_4 AND X_5;
X_7:=REF(CLOSE,5)/REF(CLOSE,6)>1.09 AND REF(CLOSE,5)=REF(HIGH,5);
X_8:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,5),1.1,0.91) AND LOW<REF(CLOSE,5) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,4)/REF(CLOSE,5)>1.05 AND REF(HIGH,4)/MAX(REF(CLOSE,4),REF(OPEN,4))>1.07);
X_9:=X_7 AND X_8;
X_10:=REF(CLOSE,6)/REF(CLOSE,7)>1.09 AND REF(CLOSE,6)=REF(HIGH,6);
X_11:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,6),1.1,0.91) AND LOW<REF(CLOSE,6) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,5)/REF(CLOSE,6)>1.05 AND REF(HIGH,5)/MAX(REF(CLOSE,5),REF(OPEN,5))>1.05);
X_12:=X_10 AND X_11;
X_13:=X_3 OR X_6 OR X_9 OR X_12;
X_14:=REF(CLOSE,2)/REF(CLOSE,3)<1.09;
X_15:=NOT(REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.03 AND REF(OPEN,2)=REF(HIGH,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)/REF(CLOSE,1)>1.025);
X_16:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(HIGH,3)>REF(HIGH,4) AND REF(OPEN,3)/REF(CLOSE,3)>1.08 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,3)<REF(OPEN,4));
X_17:=NOT(REF(CLOSE,1)/REF(CLOSE,2)<0.91 AND REF(OPEN,1)<REF(MA(CLOSE,10),1) AND REF(LOW,1)=REF(CLOSE,1) AND REF(CLOSE,2)/REF(CLOSE,3)<0.95 AND OPEN<MA(CLOSE,10));
X_18:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(OPEN,2)>REF(CLOSE,3) AND REF(CLOSE,2)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.02);
X_19:=NOT(CROSS(REF(MA(CLOSE,10),1),REF(MA(CLOSE,5),1)) AND REF(OPEN,1)<REF(MA(CLOSE,10),1) AND OPEN<MA(CLOSE,10) AND REF(MA(CLOSE,10),1)/REF(MA(CLOSE,20),1)>1.07);
X_20:=NOT(REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(CLOSE,4)/REF(CLOSE,5)<1.09 AND REF(LOW,3)>REF(HIGH,4) AND REF(LOW,2)>REF(HIGH,4) AND REF(LOW,1)>REF(HIGH,4) AND OPEN>REF(CLOSE,4));
X_21:=NOT(MA(CLOSE,60)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,10) AND OPEN<MA(CLOSE,10) AND REF(CLOSE,5)/REF(CLOSE,6)>1.095 AND REF(HIGH,2)/REF(CLOSE,3)>1.03);
X_22:=X_13 AND X_14 AND X_15 AND X_16 AND X_17 AND X_18 AND X_19 AND X_20 AND X_21;
X_23:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
X_24:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,4),1.02,0.98) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,3)<REF(OPEN,3) AND REF(OPEN,2)>REF(OPEN,1) AND REF(OPEN,3)>REF(OPEN,2) AND REF(OPEN,3)/REF(CLOSE,4)<1.01 AND NOT(REF(HIGH,3)/REF(CLOSE,4)>1.07 AND REF(HIGH,3)/MAX(REF(CLOSE,3),REF(OPEN,3))>1.07) AND NOT(REF(CLOSE,3)<REF(OPEN,3) AND REF(OPEN,3)/REF(CLOSE,3)>1.03 AND REF(CLOSE,2)<REF(OPEN,2) AND REF(OPEN,2)/REF(CLOSE,2)>1.04) AND CLOSE>OPEN;
X_25:=X_23 AND X_24;
X_26:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
X_27:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.05,0.93) AND LOW<REF(CLOSE,3) AND REF(CLOSE,1)/REF(CLOSE,2)<0.965 AND REF(CLOSE,1)<REF(OPEN,1) AND NOT(REF(HIGH,2)/REF(CLOSE,3)>1.07) AND REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1);
X_28:=X_26 AND X_27;
X_29:=X_28;
X_30:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
X_31:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,4),1.05,0.93) AND LOW<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(OPEN,3)<REF(CLOSE,4) AND REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1) AND REF(CLOSE,1)/REF(CLOSE,2)<1.01;
X_32:=X_30 AND X_31;
X_33:=REF(CLOSE,11)/REF(CLOSE,12)>1.095 AND REF(HIGH,11)=REF(CLOSE,11) AND BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),1.01,0.99) AND COUNT(EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),6),10) AND OPEN<MA(CLOSE,10) AND REF(CLOSE,1)<REF(CLOSE,11) AND OPEN<REF(CLOSE,11) AND REF(OPEN,11)<REF(MA(CLOSE,60),11) AND OPEN<MA(CLOSE,60) AND CLOSE/REF(CLOSE,1)>1.03;
X_34:=REF(CLOSE,28)/REF(CLOSE,29)>1.095 AND REF(CLOSE,28)=REF(HIGH,28) AND BETWEEN(OPEN/REF(OPEN,28),1.01,0.98) AND OPEN<MA(CLOSE,5) AND OPEN<MA(CLOSE,10) AND OPEN<MA(CLOSE,20) AND OPEN<MA(CLOSE,30) AND CLOSE>MA(CLOSE,5) AND CLOSE/REF(CLOSE,1)>1.031;
X_35:=REF(CLOSE,9)/REF(CLOSE,10)>1.095 AND BETWEEN(OPEN/REF(OPEN,9),1.01,0.99) AND BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),1.01,0.99) AND BETWEEN(REF(CLOSE,2)/REF(CLOSE,3),1.01,0.99) AND EVERY(MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,30),10) AND OPEN<MA(CLOSE,5) AND OPEN<MA(CLOSE,10);
X_36:=REF(CLOSE,9)/REF(CLOSE,10)>1.095 AND REF(HIGH,9)=REF(CLOSE,9) AND REF(0,9)/CLOSE<1.02 AND REF(CLOSE,2)/REF(CLOSE,3)<0.95 AND BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),1.03,1.01) AND EVERY(MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,30),4) AND CLOSE>MA(CLOSE,10) AND CLOSE/REF(CLOSE,1)>1.031;
X_37:=REF(CLOSE,6)/REF(CLOSE,7)>1.095 AND REF(HIGH,6)=REF(CLOSE,6) AND REF(OPEN,1)>REF(MA(CLOSE,5),1) AND REF(CLOSE,1)<REF(MA(CLOSE,10),1) AND REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND OPEN<MA(CLOSE,10) AND CLOSE/REF(CLOSE,1)>1.031;
X_38:=X_32 OR X_33 OR X_34 OR X_35 OR X_36 OR X_37;
X_39:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
X_40:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,4) AND BETWEEN(REF(CLOSE,1)/REF(CLOSE,2),1.015,0.985) AND OPEN<REF(CLOSE,4) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),2);
X_41:=REF(HIGH,1)>REF(CLOSE,1);
X_42:=X_39 AND X_40 AND X_41;
X_43:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
X_44:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,3) AND (REF(CLOSE,1)/REF(CLOSE,2)<0.96 AND REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)/REF(CLOSE,1)<1.01) AND OPEN<REF(CLOSE,3) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),2);
X_45:=REF(HIGH,1)>REF(CLOSE,1);
X_46:=X_43 AND X_44 AND X_45;
X_47:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
X_48:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)<REF(CLOSE,3) AND (REF(CLOSE,1)<REF(OPEN,1) AND REF(OPEN,1)/REF(CLOSE,1)<1.01) AND OPEN<REF(CLOSE,3) AND OPEN<MA(CLOSE,5) AND EVERY(REF(MA(CLOSE,5),1)>REF(MA(CLOSE,10),1),3);
X_49:=REF(HIGH,1)>REF(CLOSE,1);
X_50:=X_47 AND X_48 AND X_49;
X_51:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(CLOSE,3)/REF(CLOSE,4)<0.92 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)<REF(OPEN,4));
X_52:=X_42 OR X_46 OR X_50 AND X_51;
X_53:=NOT(REF(CLOSE,6)/REF(CLOSE,7)>1.06 AND REF(CLOSE,5)/REF(CLOSE,6)<1.095 AND REF(LOW,4)>REF(HIGH,5) AND REF(HIGH,3)/REF(OPEN,3)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND OPEN>REF(HIGH,1) AND OPEN/REF(CLOSE,1)>1.01 AND REF(HIGH,3)/REF(CLOSE,4)>1.03);
X_54:=IF(NAMELIKE(1),0,1) AND IF(NAMELIKE(2),0,1);
X_55:=DYNAINFO(4)>0;
X_56:=X_54 AND X_55;
金月龙:X_22 OR X_25 OR X_29 OR X_38 OR X_52 AND X_53 AND X_56,COLORYELLOW,LINETHICK2;