DRAWGBK(OPEN>0,RGB(33,47,58),RGB(0,0,0),0,574,0);
VAR1:=Ema(CLOSE,2);
VAR2:=ema(SLOPE(CLOSE,21)*20+CLOSE,42);
VAR3:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
VAR4:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
VAR5:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
DRAWBAND(VAR5+100,RGB(150,50,50),VAR3+100,RGB(0,0,255));
短线:VAR4+100,NODRAW,COLORLIGREEN;
中线:VAR5+100,COLORBLUE,LINETHICK2;
长线:VAR3+100,COLORCYAN;
VAR6:=1;
VAR7:=1;
VAR8:=50+(中线-长线);
STICKLINE(VAR8>50,VAR8,50,0.0001,0),COLORWHITE;
STICKLINE(VAR8<=50,VAR8,50,0.0001,0),COLORCYAN;
龙海:100-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),NODRAW,COLORRED;
STICKLINE(龙海>=100,110,100,3,1),COLORBLUE;
STICKLINE(龙海<=0,0,(-10),3,1),COLORWHITE;
见顶:长线>85 OR REF(长线,1)>85 AND (crOSS(中线,短线) OR CROSS(REF(中线,1),REF(短线,1))) AND CROSS(长线,短线),NODRAW,COLORLIBLUE;
VAR9:=中线<REF(中线,1) AND REF(中线,1)>80 AND (REF(短线,1)>95 OR REF(短线,2)>95) AND 长线>60 AND 短线<83.5 AND 短线<中线 AND 短线<长线+4;
VAR10:=FILTER(VAR9,4);
STICKLINE(见顶 OR VAR9,99,103,9,0),COLORWHITE;
底部:长线<12 AND 中线<8 AND 短线<7.2 AND REF(短线,1)<5 AND 中线>REF(中线,1) AND 短线>REF(短线,1) OR (长线<8 AND 中线<7 AND 短线<15 AND 短线>REF(短线,1)) OR (长线<10 AND 中线<7 AND 短线<1),NODRAW,COLORBLUE;
STICKLINE(底部,(-4),0,22,0),COLORCYAN;
底叉:长线<15 AND REF(长线,1)<15 AND 中线<18 AND 短线>REF(短线,1) AND CROSS(短线,长线) AND 短线>中线 AND (REF(短线,1)<5 OR REF(短线,2)<5) AND (中线>=长线 OR REF(短线,1)<1),NODRAW,COLORLICYAN;
STICKLINE(底叉,0,5,11,0),COLORWHITE;
底买:CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,NODRAW,COLORBLUE;
VAR11:=底叉 OR 底买;
DRAWICON(底叉,5,23),COLORBLUE;
DRAWTEXT(CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,长线-1.15,VAR7),COLORBLUE;
DRAWICON(CROSS(中线,长线) AND VAR1>=VAR2,长线,1);
DRAWICON(CROSS(中线,长线) AND VAR1>=VAR2 AND 中线<20,长线,5);
DRAWICON(CROSS(长线,中线),长线,2);
DRAWICON(CROSS(长线,中线) AND 中线>80,长线,6);
DRAWTEXT(CROSS(长线,中线) AND 中线>80,长线+1.15,VAR6),COLORCYAN;
80,DOTLINE,COLOR996699;
20,DOTLINE,COLORCYAN;