VAR1:=REF(C,1);
VAR2:=IF(C>=1,10000,100000);
VAR3:=1.10*VAR1-49/VAR2;
VAR4:=1.05*VAR1-49/VAR2;
VAR5:=0.90*VAR1+51/VAR2;
VAR6:=0.95*VAR1+51/VAR2;
VAR7:=NAMELIKE('S') OR NAMELIKE('*S');
VAR8:=IF(VAR7,C>=VAR4,C>=VAR3);
VAR9:=IF(VAR7,C<=VAR6,C<=VAR5);
VAR10:=IF(VAR7,H>=VAR4,H>=VAR3);
VAR11:=IF(VAR7,L<=VAR6,L<=VAR5);
VAR12:=C/REF(C,1)>1.099 AND H=C AND H>L,NODRAW;
VAR13:=SMA(MAX(CLOSE-REF(CLOSE,1),0),2,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),2,1)*100;
VAR14:=CROSS(VAR13,50) AND BARSLAST(VAR12)<=10 AND BARSLAST(VAR12)>0;
VAR15:=CROSS(VAR13,50) AND BARSLAST(VAR12)=0 AND COUNT(VAR12,10)=2;
VAR16:=VAR14 OR VAR15;
VAR17:=BARSNEXT(VAR16)<=10,NODRAW;
VAR18:=BARSLAST(VAR16);
VAR22:=(C-REF(C,1))/REF(C,1)*100;
VAR23:=VAR18<=15 AND VAR22>=5;
STICKLINE(VAR10,H,MAX(C,O),0,0),COLORMAGENTA;
STICKLINE(VAR11,L,MIN(C,O),0,0),COLORLICYAN;
STICKLINE(VAR8,O,C,3,0),COLORMAGENTA;
STICKLINE(VAR9,O,C,3,0),COLORLICYAN;
STICKLINE(VAR16,L,L*0.97,0,-1),COLORMAGENTA;
DRAWTEXT(VAR16,L*0.965,'擒牛'),COLORYELLOW;
STICKLINE(VAR16,C,O,3,0),COLORYELLOW;
STICKLINE(VAR16,C,H,0,0),COLORYELLOW;
STICKLINE(VAR16,O,L,0,0),COLORYELLOW;
DRAWSL(VAR12 AND VAR17,(O+C)/2,0,15,0),COLORYELLOW;
STICKLINE(VAR12 AND VAR17,O,O,20,-1),COLORGREEN;
DRAWTEXT(VAR12 AND VAR17,L*0.98,VARCAT(VAR2STR(L-0.01,2),'元★止跌')),COLORGREEN;
STICKLINE(VAR12 AND VAR17,L,L*0.985,0,-1),COLORGREEN;
STICKLINE(VAR23,C,O,3,0),COLORYELLOW;
STICKLINE(VAR23,C,H,0,0),COLORYELLOW;
STICKLINE(VAR23,O,L,0,0),COLORYELLOW;