通达信云飞金矿主图+副图+选股指标公式源码
以下是通达信云飞金矿主图指标公式源码:
X_1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
X_2:=EMA(X_1,3);
X_3:=REF(X_2,1);
X_4:=CROSS(CLOSE,X_3);
X_5:=HHV(HIGH,6);
X_6:=LLV(LOW,6);
X_7:=100-90*(X_5-CLOSE)/(X_5-X_6);
X_8:=100-MA(100*(X_5-CLOSE)/(X_5-X_6),6);
X_9:=CROSS(X_7,MA(X_8,6));
X_10:=REF(CLOSE,1);
X_11:=LLV(LOW,3);
X_12:=(CLOSE-X_10)/X_10*100;
X_13:=LLV(LOW,3);
X_14:=X_12!=LLV(X_12,3) AND CLOSE=LLV(CLOSE,3) AND CLOSE<OPEN AND X_12<REF(X_12,1) AND CLOSE=LLV(CLOSE,3) AND LOW=LLV(LOW,3) AND CLOSE!=LOW;
X_15:=BARSLAST(CLOSE/X_10>1.085);
X_16:=BETWEEN(X_15,1,34);
X_17:=REF(X_16,1)>0;
X_18:=REF(CLOSE>OPEN AND REF(HIGH=CLOSE,1) AND OPEN>X_10,1) OR (OPEN<X_10 AND REF(CLOSE<OPEN,1) AND CLOSE/X_10<0.97 AND LOW/X_10<0.927) OR (LOW/X_10<1.008 AND CLOSE/X_10<1.0199 AND CLOSE/OPEN<0.955 AND OPEN/CLOSE<1.13 AND REF(HIGH=CLOSE,1)) OR (REF(CLOSE<OPEN,1)
AND (CLOSE<REF(LOW,2) OR CLOSE/REF(CLOSE,2)<0.945) AND CLOSE/REF(CLOSE,2)<0.965) AND CLOSE/LOW<1.051 AND NOT(HIGH=LOW);
X_19:=REF(REF(CLOSE/REF(CLOSE,4)>=1.13,3) OR REF(CLOSE/REF(CLOSE,3)>=1.1,1) OR REF(CLOSE/REF(CLOSE,4)>=1.073,2) OR REF(CLOSE/X_10>=1.089,1) OR CLOSE/REF(CLOSE,2)>=1.089 OR CLOSE/REF(CLOSE,4)>=1.073 AND COUNT(CLOSE>=OPEN,4)>=1,1);
X_20:=CLOSE/X_10<0.955 OR CLOSE/X_10<0.963 AND REF(CLOSE<OPEN,1) OR CLOSE/X_10<0.965 AND REF(CLOSE<OPEN,1) OR REF((CLOSE+OPEN)/2,2) OR CLOSE/X_10<0.966 AND CLOSE<REF(OPEN,1) AND LOW<REF(LOW,1);
X_21:=X_18 OR X_19 OR X_20;
X_22:=(CLOSE-X_10)/X_10*100<(-5) AND X_14;
X_23:=X_22 AND X_21;
X_24:=BARSLAST(X_23);
X_25:=X_10<(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/2 AND CLOSE>(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/3;
X_26:=X_24<=7 AND CLOSE>1.01*X_10 AND X_25 AND COUNT(CLOSE>1.01*X_10,X_24)=1 AND NOT(HIGH=LOW) AND REF(NOT(HIGH=LOW),X_24)=1;
X_27:=X_26 AND X_17 AND X_9 AND X_4;
STICKLINE(X_27,CLOSE,OPEN,4,0),COLORLIMAGENTA;
STICKLINE(X_27,HIGH,LOW,0,1),COLORYELLOW,LINETHICK2;
DRAWTEXT(X_27,LOW*0.99,' ★ 云飞金矿'),COLORYELLOW;
以下是通达信云飞金矿副图指标公式源码:
X_1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
X_2:=EMA(X_1,3);
X_3:=REF(X_2,1);
X_4:=CROSS(CLOSE,X_3);
X_5:=HHV(HIGH,6);
X_6:=LLV(LOW,6);
X_7:=100-90*(X_5-CLOSE)/(X_5-X_6);
X_8:=100-MA(100*(X_5-CLOSE)/(X_5-X_6),6);
X_9:=CROSS(X_7,MA(X_8,6));
X_10:=REF(CLOSE,1);
X_11:=LLV(LOW,3);
X_12:=(CLOSE-X_10)/X_10*100;
X_13:=LLV(LOW,3);
X_14:=X_12!=LLV(X_12,3) AND CLOSE=LLV(CLOSE,3) AND CLOSE<OPEN AND X_12<REF(X_12,1) AND CLOSE=LLV(CLOSE,3) AND LOW=LLV(LOW,3) AND CLOSE!=LOW;
X_15:=BARSLAST(CLOSE/X_10>1.085);
X_16:=BETWEEN(X_15,1,34);
X_17:=REF(X_16,1)>0;
X_18:=REF(CLOSE>OPEN AND REF(HIGH=CLOSE,1) AND OPEN>X_10,1) OR (OPEN<X_10 AND REF(CLOSE<OPEN,1) AND CLOSE/X_10<0.97 AND LOW/X_10<0.927) OR (LOW/X_10<1.008 AND CLOSE/X_10<1.0199 AND CLOSE/OPEN<0.955 AND OPEN/CLOSE<1.13 AND REF(HIGH=CLOSE,1)) OR (REF(CLOSE<OPEN,1)
AND (CLOSE<REF(LOW,2) OR CLOSE/REF(CLOSE,2)<0.945) AND CLOSE/REF(CLOSE,2)<0.965) AND CLOSE/LOW<1.051 AND NOT(HIGH=LOW);
X_19:=REF(REF(CLOSE/REF(CLOSE,4)>=1.13,3) OR REF(CLOSE/REF(CLOSE,3)>=1.1,1) OR REF(CLOSE/REF(CLOSE,4)>=1.073,2) OR REF(CLOSE/X_10>=1.089,1) OR CLOSE/REF(CLOSE,2)>=1.089 OR CLOSE/REF(CLOSE,4)>=1.073 AND COUNT(CLOSE>=OPEN,4)>=1,1);
X_20:=CLOSE/X_10<0.955 OR CLOSE/X_10<0.963 AND REF(CLOSE<OPEN,1) OR CLOSE/X_10<0.965 AND REF(CLOSE<OPEN,1) OR REF((CLOSE+OPEN)/2,2) OR CLOSE/X_10<0.966 AND CLOSE<REF(OPEN,1) AND LOW<REF(LOW,1);
X_21:=X_18 OR X_19 OR X_20;
X_22:=(CLOSE-X_10)/X_10*100<(-5) AND X_14;
X_23:=X_22 AND X_21;
X_24:=BARSLAST(X_23);
X_25:=X_10<(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/2 AND CLOSE>(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/3;
X_26:=X_24<=7 AND CLOSE>1.01*X_10 AND X_25 AND COUNT(CLOSE>1.01*X_10,X_24)=1 AND NOT(HIGH=LOW) AND REF(NOT(HIGH=LOW),X_24)=1;
X_27:=X_26 AND X_17 AND X_9 AND X_4;
STICKLINE(X_27,0,5,4,0),COLORLIMAGENTA;
STICKLINE(X_27,0,5,4,0),COLORLIMAGENTA;
STICKLINE(X_27,0,5,0.22,0),COLORLIMAGENTA;
DRAWTEXT(X_27,4,''),COLORYELLOW,LINETHICK2;
以下是通达信云飞金矿选股公式源码:
X_1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
X_2:=EMA(X_1,3);
X_3:=REF(X_2,1);
X_4:=CROSS(CLOSE,X_3);
X_5:=HHV(HIGH,6);
X_6:=LLV(LOW,6);
X_7:=100-90*(X_5-CLOSE)/(X_5-X_6);
X_8:=100-MA(100*(X_5-CLOSE)/(X_5-X_6),6);
X_9:=CROSS(X_7,MA(X_8,6));
X_10:=REF(CLOSE,1);
X_11:=LLV(LOW,3);
X_12:=(CLOSE-X_10)/X_10*100;
X_13:=LLV(LOW,3);
X_14:=X_12!=LLV(X_12,3) AND CLOSE=LLV(CLOSE,3) AND CLOSE<OPEN AND X_12<REF(X_12,1) AND CLOSE=LLV(CLOSE,3) AND LOW=LLV(LOW,3) AND CLOSE!=LOW;
X_15:=BARSLAST(CLOSE/X_10>1.085);
X_16:=BETWEEN(X_15,1,34);
X_17:=REF(X_16,1)>0;
X_18:=REF(CLOSE>OPEN AND REF(HIGH=CLOSE,1) AND OPEN>X_10,1) OR (OPEN<X_10 AND REF(CLOSE<OPEN,1) AND CLOSE/X_10<0.97 AND LOW/X_10<0.927) OR (LOW/X_10<1.008 AND CLOSE/X_10<1.0199 AND CLOSE/OPEN<0.955 AND OPEN/CLOSE<1.13 AND REF(HIGH=CLOSE,1)) OR (REF(CLOSE<OPEN,1)
AND (CLOSE<REF(LOW,2) OR CLOSE/REF(CLOSE,2)<0.945) AND CLOSE/REF(CLOSE,2)<0.965) AND CLOSE/LOW<1.051 AND NOT(HIGH=LOW);
X_19:=REF(REF(CLOSE/REF(CLOSE,4)>=1.13,3) OR REF(CLOSE/REF(CLOSE,3)>=1.1,1) OR REF(CLOSE/REF(CLOSE,4)>=1.073,2) OR REF(CLOSE/X_10>=1.089,1) OR CLOSE/REF(CLOSE,2)>=1.089 OR CLOSE/REF(CLOSE,4)>=1.073 AND COUNT(CLOSE>=OPEN,4)>=1,1);
X_20:=CLOSE/X_10<0.955 OR CLOSE/X_10<0.963 AND REF(CLOSE<OPEN,1) OR CLOSE/X_10<0.965 AND REF(CLOSE<OPEN,1) OR REF((CLOSE+OPEN)/2,2) OR CLOSE/X_10<0.966 AND CLOSE<REF(OPEN,1) AND LOW<REF(LOW,1);
X_21:=X_18 OR X_19 OR X_20;
X_22:=(CLOSE-X_10)/X_10*100<(-5) AND X_14;
X_23:=X_22 AND X_21;
X_24:=BARSLAST(X_23);
X_25:=X_10<(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/2 AND CLOSE>(REF(CLOSE,X_24)+REF(CLOSE,X_24+1))/3;
X_26:=X_24<=7 AND CLOSE>1.01*X_10 AND X_25 AND COUNT(CLOSE>1.01*X_10,X_24)=1 AND NOT(HIGH=LOW) AND REF(NOT(HIGH=LOW),X_24)=1;
X_27:X_26 AND X_17 AND X_9 AND X_4;