VAR1:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR2:=(100-((90*(HHV(HIGH,21)-CLOSE))/(HHV(HIGH,21)-LLV(LOW,21))));
VAR3:=(100-MA(((100*(HHV(HIGH,6)-CLOSE))/(HHV(HIGH,6)-LLV(LOW,6))),34));
年:=MA(CLOSE,26),COLORGREEN,LINETHICK0;
{ gpxiazai.com 股票软件下载网_通达信股票指标公式}
箱底:LLV(MA((LOW),5),30),COLORGREEN,LINETHICK1;
长箱底:LLV(MA((LOW),5),60),LINETHICK1;
长长箱底:LLV(MA((LOW),5),100),COLORCYAN,LINETHICK1;
长长箱顶:HHV(MA((HIGH),6),120),LINETHICK1;
长箱顶:HHV(MA((HIGH),6),60),COLORRED,LINETHICK1;
箱顶:HHV(MA((HIGH),6),30),COLOR00AAFF,LINETHICK1;
中间:(箱顶+箱底)/2,COLORFF00FF,LINETHICK3;
启动线:EMA(C,2),COLOR00FF00,LINETHICK2;
WX:EMA(C,5),COLORWHITE,LINETHICK2;
STICKLINE(CROSS(WX,中间),中间-0.8,中间+0.8,8,0) ,COLORWHITE;
STICKLINE(CROSS(WX,长箱顶),长箱顶-0.8,长箱顶+0.8,10,0) ,COLORYELLOW,LINETHICK2;
STICKLINE(CROSS(WX,箱顶),箱顶-0.5,箱顶+0.5,10,0) ,COLORGREEN;
STICKLINE(WX 中间,中间,WX,0,-1),COLORFF00FF;
STICKLINE(中间 WX,WX,中间,0,-1),COLORLIGREEN;
STICKLINE(CLOSE OPEN OR CLOSE=OPEN AND CLOSE =REF(CLOSE,1),OPEN,CLOSE,5,0),COLORCYAN;
STICKLINE(CLOSE OPEN OR CLOSE=OPEN AND CLOSE REF(CLOSE,1),OPEN,CLOSE,5,0),COLORRED;Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0.015,0,0,STRCAT(Z3,GNBLOCK)),COLOR00C0C0;
DRAWTEXT_FIX(1,0.01,0.12,0,'流通盘(亿):'),COLOR0080FF;
DRAWNUMBER_FIX(1,0.28,0.12,0,CONST(CAPITAL/1000000)),COLOR0080FF;
{ gpxiazai.com 股票软件下载网_通达信股票指标公式}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
取舍线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK1,COLORYELLOW;
生命线:MA(取舍线,6),LINETHICK1,COLORRED;
ZT:=C/REF(C,1) 1.093;
XH:=FILTER(ZT,13);
BH:=BARSLAST(ZT);STICKLINE(ZT,REF(O,BH),REF(C,BH),2,0),COLORYELLOW;