N1:=5;N2:=10;价:=REF(CLOSE,1);高:SMA(MAX(CLOSE-价,0),N1,1)/SMA(A(CLOSE-价),N1,1)*100;低:SMA(MAX(CLOSE-价,0),N2,1)/SMA(ABS(CLOSE-价),N2,1)*100;一级:95,COLORBLUE;二级:90,COLORYELLOW;三级:80,COLORRED;DRAWICON(高>=95,HIGH,3);DRAWTEXT(ISLASTBAR,一级,'一级警报');DRAWTEXT(ISLASTBAR,二级,'二级警报');DRAWTEXT(ISLASTBAR,三级,'三级警报');