筹码顶:REFDATE(CONST(COST(99.999)),DATE),DOTLINE,COLORMAGENTA,LINETHICK2;
筹码底:REFDATE(CONST(COST(0.001)),DATE),DOTLINE,COLORCYAN,LINETHICK2;
VAR1:=((筹码顶-筹码底)/2)+筹码底;
VAR2:=(筹码顶-筹码底)/10;
VAR3:=(VAR2*9)+筹码底;
VAR4:=(VAR2*7)+筹码底;
VAR5:=(VAR2*3)+筹码底;
VAR6:=(VAR2*1)+筹码底;
VAR7:=(VAR2*-1)+筹码底;
VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
VAR9:=IF(YEAR>=2025,0,1);
VAR10:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);
VAR11:=EMA(CLOSE/VAR10*(1.88*CLOSE+LOW+OPEN)/2.75,3);
VAR16:=(VAR11-VAR10)/VAR10/2;
VAR18:=EMA(VAR11-VAR16*VAR11,5)*VAR9;
DRAWTEXT(CURRBARSCOUNT=1,VAR3*0.998,' 90'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,筹码顶*0.998,' 100'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,VAR4*0.998,' 70'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,VAR1*0.998,' 50'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,VAR5*0.998,' 30'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,VAR6*0.998,' 10'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,筹码底*0.998,' 0'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,VAR7*0.998,'-10'),COLORWHITE;
漏斗下:IF(VAR8>VAR18,VAR8,VAR18)*VAR9,COLORYELLOW,LINETHICK2;
漏斗上:IF(VAR18<VAR8 AND VAR18<C*0.15,EMA(C,300)-3*STD(C,300),VAR18),COLORYELLOW,LINETHICK2;
漏:IF(VAR18>VAR8,漏斗上,DRAWNULL),COLORGREEN,LINETHICK2;
开口XG:BARSLASTCOUNT(漏斗下!=漏斗上)=1,NODRAW;
生命线:IF(CURRBARSCOUNT<13,CONST(COST(67.5)),DRAWNULL),COLORWHITE,DOTLINE;