{ Relative Strength Index} rsi_r:= (CLOSE - ref(CLOSE,-1)); rsi_rs := Wilders(if(rsi_r>0,rsi_r,0),Periods) / Wilders(if(rsi_r<0,Abs(rsi_r),0),Periods); RS:= 100-(100/(1+rsi_rs)); {Stochastic RSI Oscillator} StRSI := Mov( ( ( ( RS - LLV( RS,PerK ) ) / ( HHV(RS,PerK) - LLV( RS,PerK) ) ) * 100 ) , Sl, E );