VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
VAR4:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
VAR5:=(HIGH-REF(HIGH,1));
VAR6:=(REF(LOW,1)-LOW);
VAR7:=(SUM(IF(((VAR5>0) AND (VAR5>VAR6)),VAR5,0),5));
VAR8:=SUM(IF(((VAR6>0) AND (VAR6>VAR5)),VAR6,0),5);
VAR9:=(((VAR7)*100)/TR);
VAR10:=((VAR8*100)/TR);
VAR18:=(MA(((Abs((VAR10-VAR9))/(VAR10+VAR9))*100),3));
VAR19:=IF(((VAR18>88) AND (VAR9<5.8)),25,0);
DRAWICON(VAR19=25,-5,9);
STICKLINE(VAR1<-7,5,0,3,0),COLOR0099FF;
STICKLINE(VAR2<-9,10,0,2.2,0),COLOR0066FF;
STICKLINE(VAR3<-11,15,0,1.4,0),COLOR0033FF;
STICKLINE(VAR4<-13,20,0,0.6,0),COLOR0000FF;
DRAWTEXT(VAR1<-7 AND VAR2<-9 AND VAR3<-11 AND VAR4<-13,18,'超跌'),COLORYELLOW;
STICKLINE(VAR1>10,0,-5,3,0),COLORFFFF33;
STICKLINE(VAR2>15,0,-10,2.2,0),COLORFFCC00;
STICKLINE(VAR3>20,0,-15,1.4,0),COLORFF9933;
STICKLINE(VAR4>25,0,-20,0.6,0),COLORFF6633;
DRAWTEXT(VAR1>10 AND VAR2>15 AND VAR3>20 AND VAR4>25,-18,'预警'),COLORYELLOW;
BL:(VAR1+VAR2+VAR3+VAR4)/2,LINETHICK2,COLORFF00FF;
BLMA:MA(BL,6),LINETHICK2,COLORCC0000;
DRAWTEXT(BL>50,BL-2,'◆谨慎'),COLORYELLOW;
DRAWTEXT(BL<-35,BL+2,'◆关注'),COLORYELLOW;