大智慧缺口时窗主图指标公式

{缺口}

stickline(L>REF(H,1),L,REF(H,1),50,1001),color0000FF;

stickline(REF(L,1)>H,ref(L,1),H,50,1001),color00FF00;

{时窗}

MA1:MA((O+C+H+L)/4,5),COLORCYAN;

MA2:MA((O+C+H+L)/4,18),COLORYELLOW;

MA3:MA((O+C+H+L)/4,34),COLORRED;

MA4:MA((O+C+H+L)/4,55),COLORBLUE;

MA5:MA((O+C+H+L)/4,89),COLORWHITE;

E1:=BARSCOUNT(C);

AH:=HHV(H,200);

AL:=LLV(L,200);

B0:=(AH-AL)/40;

KB1:=H+B0;

KB2:=L-B0;

STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHICK1;

DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,'时窗'),COLORYELLOW;

{压撑}

AA1:=AMOUNT/V;

BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;

DD1:=L<MA(C,5)*0.921;

EE1:=V<MA(V,5)*1.5;

DOUDOU:BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;

DRAWTEXT(DOUDOU,L*0.99,'◎买'),COLOR0099FF;PP:=REF(C,1);

QQ:=SMA(MAX(C-PP,0),6,1)/SMA(Abs(C-PP),6,1)*100;

DRAWTEXT(crOSS(82,QQ),H*1.01,'◎卖'),COLORYELLOW;KOH:=LOW>REF(HIGH,1);

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

{指标网-股票公式网站 www.zhibiaow.com}

STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;

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

STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;

TY:=C;

A1:=REF(TY,10)=HHV(TY,2*10+1);

B1:=FILTER(A1,10);

C1:=BacKSET(B1,10+1);

HD:=FILTER(C1,10);

A2:=REF(TY,10)=LLV(TY,2*10+1);

B2:=FILTER(A2,10);

C2:=BACKSET(B2,10+1);

LD:=FILTER(C2,10);

A:=REF(C,BArslAST(HD));

B:=REF(L,BARSLAST(LD));

T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;

T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);

顶:IF(T1,A,A),COLORYELLOW,POINTDOT,LINETHICK1;

底:IF(T2,B,B),COLORGREEN,POINTDOT,LINETHICK1;