LC:=REF(CLOSE,1);N1:=5;N:=7;P:=3;
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSIM:=RSI1;
MID:MA(RSIM,N),COLORRED;
UPPER:MID+P*STD(RSIM,N)*(N)/(N-1),COLORRED;
LOWER:MID-P*STD(RSIM,N)*(N)/(N-1),COLORBLUE;
BRSI1:RSI1,COLORGREEN;
A:20,DOTLINE,COLORYELLOW;
B:80,DOTLINE,COLORYELLOW;