通达信双控反弹指标公式

通达信缠论2021主图指标公式

通达信双控反弹指标公式:

X_1:=(3*CLOSE+OPEN+LOW+HIGH)/6;

X_2:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210;

X_3:=MA(X_2,5);

X_4:=(X_2-X_3)/CLOSE*100;

X_5:=X_4>REF(X_4,1) AND REF(X_4,1)<REF(X_4,2) AND REF(X_4,2)<REF(X_4,3) AND X_4<0.01;

X_6:=X_4>0.01 AND REF(X_4<0.01,1);

X_7:=BArslAst(X_6>0);

X_8:=COUNT(X_5>0,X_7);

小概率:1,COLORGRAY,LINETHICK2;

中等概率:3,COLORLIBLUE,LINETHICK2;

较高概率:4,COLORYELLOW,LINETHICK2;

极高概率:5,COLORRED,LINETHICK2;

DRAWTEXT(ISLASTBAR,1,'海面'),COLORGRAY;

DRAWTEXT(ISLASTBAR,2.8,'分界'),COLORLIBLUE;

DRAWTEXT(ISLASTBAR,3.8,'天际'),COLORYELLOW;

DRAWTEXT(ISLASTBAR,4.8,'龙抬'),COLORRED;

X_9:=REF(LOW,1);

X_10:=SMA(Abs(LOW-X_9),3,1)/SMA(MAX(LOW-X_9,0),3,1)*100;

X_11:=EMA(X_10*10,3);

X_12:=LLV(LOW,13);

X_13:=HHV(X_11,13);

X_14:=EMA(IF(LOW<=X_12,(X_11+X_13*2)/2,0),3)/618;

X_15:=IF(IF(X_14>500 AND X_8>0,500,X_14)/10*X_8>10,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8*5/100,IF(X_14>500 AND X_8>0,500,X_14)/10*X_8);

STICKLINE(X_15>(-120),0,X_15,3,1),COLORGRAY;

X_16:=vol/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

X_17:=X_15>=4 AND X_15<=5 AND X_15>X_8 AND X_8>=2;

STICKLINE(X_17,0,X_15,2.7,0),COLORYELLOW;

X_18:=X_15>=5 AND X_15>X_8 AND X_8>=1;

STICKLINE(X_18,0,X_15,2.7,0),COLORRED;

STICKLINE(X_8>=7,0,X_8*0.8,3,1),COLORGRAY;

STICKLINE(X_8>=7,0,X_8*0.8,2.7,0),COLORRED;

X_19:=X_15<=3 AND X_15>=0.5 AND X_8>=1 AND X_8<3 AND CLOSE>OPEN AND OPEN/LOW-1>=0.01 OR (X_15>=4 AND X_8<3 AND X_15<=5);

STICKLINE(X_19,0,X_15,2.7,0),COLORGRAY;

X_20:=X_15<=4 AND X_15>=3 AND X_15>X_8 AND X_8>=2;

STICKLINE(X_20,0,X_15,2.7,0),COLORLIBLUE;

反弹动能:COUNT(X_5>0,X_7),COLORWHITE,LINETHICK2;

通达信大资金准备启动指标公式