乾坤六道通达信指标公式副图源码,

发布者:微微一笑 2023-8-23 17:46

主图


N1:=20;


MA8:=MA(CLOSE,8);


N2:=ROUND(N1/2);


N3:=ROUND(SQRT(N1));


RHMA:=2*WMA(C,N2)-WMA(C,N1);


HMA:WMA(RHMA,N3),COLORRED,LINETHICK1;{均线红色加粗}


NOTEXT1:IF(HMA<=REF(HMA,1),HMA,DRAWNULL);

副图

X_3:=EMA(CLOSE,8)-EMA(CLOSE,13);


X_4:=EMA(X_3,5);


X_5:=(X_3>X_4);


X_6:=IF(X_5,1,0);


DRAWTEXT(ISLASTBAR=1,1,76),COLORWHITE;


DRAWICON((X_3>X_4),1,1);


DRAWICON((X_3<X_4),1,2);


X_7:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;


X_8:=SMA(X_7,3,1);


X_9:=SMA(X_8,3,1);


DRAWICON((X_8>X_9),2,1);


DRAWICON((X_8<X_9),2,2);


DRAWTEXT(ISLASTBAR=1,2,77),COLORWHITE;


X_10:=(X_8>X_9);


X_11:=IF(X_10,2,0);


X_12:=REF(CLOSE,1);


X_13:=SMA(MAX(CLOSE-X_12,0),5,1)/SMA(ABS(CLOSE-X_12),5,1)*100;


X_14:=SMA(MAX(CLOSE-X_12,0),13,1)/SMA(ABS(CLOSE-X_12),13,1)*100;


DRAWICON((X_13>X_14),3,1);


DRAWICON((X_13<X_14),3,2);


DRAWTEXT(ISLASTBAR=1,3,78),COLORWHITE;


X_15:=(X_13>X_14);


X_16:=IF(X_15,3,0);


X_17:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;


X_18:=SMA(X_17,3,1);


X_19:=SMA(X_18,3,1);


DRAWICON((X_18>X_19),4,1);


DRAWICON((X_18<X_19),4,2);


DRAWTEXT(ISLASTBAR=1,4,79),COLORWHITE;


X_20:=X_18>X_19;


X_21:=IF(X_20,4,0);


X_22:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;


DRAWICON(CLOSE>X_22,5,1);


DRAWICON(CLOSE<X_22,5,2);


DRAWTEXT(ISLASTBAR=1,5,80),COLORWHITE;


X_23:=CLOSE>X_22;


X_24:=IF(X_23,5,0);


X_25:=IF(YEAR>2023,1,0);


STICKLINE(X_25=1,1,6,20,0),COLORBLACK;


X_26:=CLOSE-REF(CLOSE,1);


X_27:=100*EMA(EMA(X_26,5),3)/EMA(EMA(ABS(X_26),5),3);


X_28:=100*EMA(EMA(X_26,13),8)/EMA(EMA(ABS(X_26),13),8);


DRAWICON(X_27>X_28,6,1);


DRAWICON(X_27<X_28,6,2);


DRAWTEXT(ISLASTBAR=1,6,81),COLORWHITE;


X_29:=X_27>X_28;


X_30:=IF(X_29,7,0);


涨买入:IF(X_5 AND X_10 AND X_15 AND X_20 AND X_23 AND X_29 AND REF(X_5 AND X_10 AND X_15 AND X_20 AND X_23 AND X_29,1)=0,6,0),COLORYELLOW,LINETHICK2;


上涨:IF(X_5 AND X_10 AND X_15 AND X_20 AND X_23 AND X_29,6,0),COLORYELLOW,LINETHICK2;


X_31:=BARSLASTCOUNT(X_5 AND X_10 AND X_15 AND X_20 AND X_23 AND X_29);


X_32:=BARSLASTCOUNT(X_6+X_11+X_16+X_21+X_24+X_30>0 AND X_6+X_11+X_16+X_21+X_24+X_30<21);


X_33:=BARSLASTCOUNT(X_6+X_11+X_16+X_21+X_24+X_30=0);


选股


X_1:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,20)>MA(CLOSE,30);


X_2:=FINANCE(40)>4000000000;


X_5:=EMA(CLOSE,8)-EMA(CLOSE,13);


X_6:=EMA(X_5,5);


X_7:=(X_5>X_6);


X_8:=IF(X_7,1,0);


X_9:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;


X_10:=SMA(X_9,3,1);


X_11:=SMA(X_10,3,1);


X_12:=(X_10>X_11);


X_13:=IF(X_12,2,0);


X_14:=REF(CLOSE,1);


X_15:=SMA(MAX(CLOSE-X_14,0),5,1)/SMA(ABS(CLOSE-X_14),5,1)*100;


X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100;


X_17:=(X_15>X_16);


X_18:=IF(X_17,3,0);


X_19:=(-(HHV(HIGH,13)-CLOSE))/(HHV(HIGH,13)-LLV(LOW,13))*100;


X_20:=SMA(X_19,3,1);


X_21:=SMA(X_20,3,1);


X_22:=X_20>X_21;


X_23:=IF(X_22,4,0);


X_24:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;


X_25:=CLOSE>X_24;


X_26:=IF(X_25,5,0);


X_27:=CLOSE-REF(CLOSE,1);


X_28:=100*EMA(EMA(X_27,5),3)/EMA(EMA(ABS(X_27),5),3);


X_29:=100*EMA(EMA(X_27,13),8)/EMA(EMA(ABS(X_27),13),8);


X_30:=X_28>X_29;


X_31:=IF(X_30,6,0);


X_32:=IF(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30 AND REF(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30,1)=0,6,0);


X_33:=IF(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30,6,0);


X_34:=BARSLASTCOUNT(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30);


X_35:=BARSLASTCOUNT(X_8+X_13+X_18+X_23+X_26+X_31>0 AND X_8+X_13+X_18+X_23+X_26+X_31<21);


X_36:=BARSLASTCOUNT(X_8+X_13+X_18+X_23+X_26+X_31=0);


XG:(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30 AND REF(X_7 AND X_12 AND X_17 AND X_22 AND X_25 AND X_30,1)=0) AND X_1 AND X_2 AND DYNAINFO(4)>0;

为你推荐
返回顶部