N1:=9;
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
STICKLINE((REF(RSI,1) =80 AND RSI 80),LOW,HIGH,0.8,0),COLORYELLOW;
STICKLINE((REF(RSI,1) =80 AND RSI 80),CLOSE,OPEN,8,0),COLORYELLOW;
STICKLINE((REF(RSI,1) =20 AND RSI 20),LOW,HIGH,0.8,0),COLORBLUE;
STICKLINE((REF(RSI,1) =20 AND RSI 20),CLOSE,OPEN,8,0),COLORBLUE;