LC := REF(CLOSE,1); RSI:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; MID : MA(RSI,N); UPPER: MID + P*STD(RSI,N); LOWER: MID - P*STD(RSI,N);