通达信——绝密指标【养家系列】X
通达信——绝密指标【养家系列】
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,54);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_26:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
X_27:=DYNAINFO(7)/REF(CLOSE,1)>1.05 AND DYNAINFO(7)/OPEN>1.05;
X_28:=VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
X_29:=VOL/CAPITAL*100;
X_30:=VOL>=1.9*REF(VOL,1) AND X_29>4;
妖股:X_25 AND CLOSE/REF(CLOSE,1)>1.095 AND X_28 AND NOT(OPEN>=REF(CLOSE,1)*1.096) AND X_78=X_79 AND REF(X_79,1)>REF(X_78,1) AND CROSS(CLOSE,X_32) AND CROSS(CLOSE,X_33)
AND CLOSE/REF(CLOSE,1)>1.095 AND CLOSE=HIGH AND X_76 AND COUNT(X_76,60)=1,COLORRED;
抄底:LOW<=X_86 AND COUNT(LOW<=X_86,BARSLAST(妖股))=1 AND BARSLAST(妖股)>2,COLORCYAN;
加仓:X_88 AND COUNT(X_88,BARSLAST(妖股))=1 AND LOW<=X_87 AND BARSLAST(妖股)>5,COLORMAGENTA;
STICKLINE(妖股,0.2,0.45,8,0),COLORRED;
STICKLINE(妖股,0.45,0.72,8,0),COLORYELLOW;
STICKLINE(妖股,0.72,1,8,0),COLORMAGENTA;
DRAWTEXT(妖股,0.4,'←妖股'),COLORYELLOW;
STICKLINE(抄底,0.2,0.45,8,0),COLORCYAN;
STICKLINE(抄底,0.45,0.72,8,0),COLORYELLOW;
STICKLINE(抄底,0.72,1,8,0),COLORRED;
DRAWTEXT(抄底,0.67,'←抄底'),COLORCYAN;
STICKLINE(加仓,0.2,0.45,8,0),COLORMAGENTA;
STICKLINE(加仓,0.45,0.72,8,0),COLORRED;
STICKLINE(加仓,0.72,1,8,0),COLORYELLOW;
DRAWTEXT(加仓,0.95,'←加仓'),COLORMAGENTA;