VAR1:=COST(0.001);
VAR2:=COST(99.999001);
VAR3:=(VAR2-VAR1)/10;
VAR4:=(WINNER(VAR1+VAR3*3)-WINNER(VAR1))*100;
VAR5:=(WINNER(VAR1+VAR3*7)-WINNER(VAR1+VAR3*4))*100;
VAR6:=(WINNER(VAR2)-WINNER(VAR1+VAR3*7))*100;
VAR7:=VAR4< 50 AND VAR5< 50;
VAR8:=VAR4< 50 AND VAR6< 50;
VAR9:=VAR5< 50 AND VAR6< 50;
VAR10:=MAX(VAR4,VAR6)-MIN(VAR4,VAR6)< 20;
VAR11:=MAX(VAR4,VAR5)-MIN(VAR4,VAR5)< 20;
VAR12:=MAX(VAR6,VAR5)-MIN(VAR6,VAR5)< 20;
VAR13:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND NOT(CODELIKE(8091));
VAR14:=VAR7 AND VAR10 AND VAR13;
VAR15:=VAR7 AND VAR11 AND VAR13;
VAR16:=VAR7 AND VAR12 AND VAR13;
VAR17:=VAR8 AND VAR10 AND VAR13;
VAR18:=VAR8 AND VAR11 AND VAR13;
VAR19:=VAR8 AND VAR12 AND VAR13;
VAR20:=VAR9 AND VAR10 AND VAR13;
VAR21:=VAR9 AND VAR11 AND VAR13;
VAR22:=VAR9 AND VAR12 AND VAR13;
VAR23:=VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18 OR VAR19 OR VAR20 OR VAR21 OR VAR22;
DRAWBAND(VAR23=1,RGB(255,0,0),VAR23< 1,RGB(0,100,0));
DRAWICON(BARSLAST(VAR23< 1),8,0);
DRAWTEXT(BARSLAST(VAR23< 1)=1 AND VAR23=1,3,'↙临门一脚')COLORMAGENTA;
STICKLINE(BARSLAST(VAR23< 1)=1 AND VAR23=1,3,0,1.6,0),COLORYELLOW;