cs=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;a=EMA(cs,3,1);b=EMA(a,2,1);e=3*a-2*b;LOWV:=LLV(LOW,8);HIGHV:=HHV(HIGH,8);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);上:=EMA(RSV,3),colorlimagenta;下:=MA(上,3),colorliblue;A1:=BARSLAST(REF(OSS(e,b),1));底:=REF(CLOSE,A1+1)>CLOSE AND e>REF(e,A1+1) AND CROSS(e,b);A2:=BARSLAST(REF(CROSS(b,e),1));顶:=REF(CLOSE,A2+1)
b AND CROSS(b,e);DRAWTEXT(CROSS(上,18),20,'加'),colorcyan;DRAWTEXT(CROSS(上,78),80,'警'),coloryellow;DRAWTEXT(CROSS(96,e) AND (e<=80),60,'