通达信BBI加二分位主图指标公式

通达信乾坤趋势主图指标公式

通达信BBI加二分位主图指标公式:
bbi1:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

BBI2:(MA(CLOSE,6)+MA(CLOSE,18)+MA(CLOSE,54)+MA(CLOSE,162))/4;

C13:=REF(C,1);

涨停:=IF((C-C13)*100/C13>=(10-0.01*100/C13),1,0);

stICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;

跌停:=IF((C13-C)*100/C13>=(10-0.01*100/C13),1,0);

STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;

N:=3;

L0:=0.00;{点位差参数}

L1:=Abs(L-REF(L,1))<=L0;

L2:=ABS(L-REF(L,2))<=L0;

L3:=ABS(L-REF(L,3))<=L0;

L4:=ABS(L-REF(L,4))<=L0;

L5:=ABS(L-REF(L,5))<=L0;

精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;

精准左:=FILTER(精准线首次,N) ;

天数:=BArslAST(精准左);

LTS:=REF(L,天数);

精准右:=ABS(L-LTS)<=L0;

STICKLINE(精准左,L,L,50,-1),COLOR8080FF;

G1:=ABS(H-REF(H,1))<=L0;

G2:=ABS(H-REF(H,2))<=L0;

G3:=ABS(H-REF(H,3))<=L0;

G4:=ABS(H-REF(H,4))<=L0;

G5:=ABS(H-REF(H,5))<=L0;

G6:=ABS(H-REF(H,6))<=L0;

G7:=ABS(H-REF(H,7))<=L0;

G8:=ABS(H-REF(H,8))<=L0;

精准线1首次:=G1 OR G2 OR G3 OR G4 OR G5 OR G6 OR G7 OR G8;

精准左1:=FILTER(精准线1首次,N) ;

天数1:=BARSLAST(精准左1);

GTS:=REF(L,天数1);

精准右1:=ABS(H-LTS)<=L0;

STICKLINE(精准左1,H,H,50,-1),COLOR00FF00;

DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);

DEA:=EMA(DIF,9);

AAA:=(DIF-DEA)*2*60;

起爆:=crOSS(AAA-REF(AAA,1),15),COLORRED,LINETHICK2;

DRAWTEXT(起爆,L*0.99,'起涨'),COLORYELLOW,LINETHICK2;

百分比:=5;右数峰序:=2;

T1:=CONST(O);

B1:=O=T1;

C1:=O=T1-0.01;

D1:=O=T1+0.01;

E1:=B1=0 AND C1=1;F1:=B1=0 AND D1=1;

B2:=C=T1;

C2:=C=T1-0.01;

D2:=C=T1+0.01;

E2:=B2=0 AND C2=1;F2:=B2=0 AND D2=1;

B3:=L=T1;

C3:=L=T1-0.01;

D3:=L=T1+0.01;

E3:=B3=0 AND C3=1;F3:=B3=0 AND D3=1;

B4:=H=T1;

C4:=H=T1-0.01;

D4:=H=T1+0.01;

E4:=B4=0 AND C4=1;F4:=B4=0 AND D4=1;

Q1:=B1 OR B2 OR B3 OR B4;

Q2:=C1 OR C2 OR C3 OR C4;

Q3:=D1 OR D2 OR D3 OR D4;

开盘精准线:T1,COLORYELLOW,POINTDOT,LINETHICK3.5;

{低价精准线}

TT1:=CONST(L);

BB1:=O=TT1;

CC1:=O=TT1-0.01;

DD1:=O=TT1+0.01;

EE1:=BB1=0 AND CC1=1;

FF1:=BB1=0 AND DD1=1;

BB2:=C=TT1;

CC2:=C=TT1-0.01;

DD2:=C=TT1+0.01;

EE2:=BB2=0 AND CC2=1;

FF2:=BB2=0 AND DD2=1;

BB3:=L=TT1;

CC3:=L=TT1-0.01;

DD3:=L=TT1+0.01;

EE3:=BB3=0 AND CC3=1;

FF3:=BB3=0 AND DD3=1;

BB4:=H=TT1;

CC4:=H=TT1-0.01;

DD4:=H=TT1+0.01;

EE4:=BB4=0 AND CC4=1;

FF4:=BB4=0 AND DD4=1;

QQ1:=BB1 OR BB2 OR BB3 OR BB4;

QQ2:=CC1 OR CC2 OR CC3 OR CC4;

QQ3:=DD1 OR DD2 OR DD3 OR DD4;

低价精准线:TT1,COLORGREEN,POINTDOT,LINETHICK3.5;

二分之一:=(O+C)/2,NODRAW;

STICKLINE(C>0,二分之一,二分之一,2.9,0),COLORFFFFFF;

通达信潜力形态选股指标公式