B1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
B2:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
B3:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;
B4:=(CLOSE-MA(CLOSE,30))/MA(CLOSE,30)*100;
STICKLINE(B1<-7,5,0,3,0),COLOR0099FF;
STICKLINE(B2<-9,10,0,2.2,0),COLOR0066FF;
STICKLINE(B3<-11,15,0,1.4,0),COLOR0033FF;
STICKLINE(B4<-13,20,0,0.6,0),COLOR0000FF;
DRAWTEXT(B1<-7 AND B2<-9 AND B3<-11 AND B4<-13,18,'超跌'),COLORYELLOW;
STICKLINE(B1>10,0,-5,3,0),COLORFFFF33;
STICKLINE(B2>15,0,-10,2.2,0),COLORFFCC00;
STICKLINE(B3>20,0,-15,1.4,0),COLORFF9933;
STICKLINE(B4>25,0,-20,0.6,0),COLORFF6633;
DRAWTEXT(B1>10 AND B2>15 AND B3>20 AND B4>25,-18,'预警'),COLORYELLOW;
BL:(B1+B2+B3+B4)/4,LINETHICK2,COLOR000066;
BLMA:MA(BL,6),LINETHICK2,COLORCC0000;
DRAWTEXT(BL>21,BL-2,'◆谨慎'),COLORYELLOW;
DRAWTEXT(BL<-10,BL+2,'◆关注'),COLORYELLOW;