P:=100;
LC:=REF(CLOSE,1);
TEMP1:=MAX(CLOSE-LC,0);
TEMP2:=Abs(CLOSE-LC);
rsi:=SMA(TEMP1,16,1)/SMA(TEMP2,16,1)*100,COLORWHITE;
ERSI:EMA(RSI,2);
UP70:70,DOTLINE,COLORLICYAN;
Z40:40,DOTLINE,COLORWHITE;
DOWN30:30,DOTLINE,COLORRED;
DRAWICON(crOSS(30,ERSI),30*0.9,1);
DRAWICON(CROSS(ERSI,40),40*1.3,2);