// Downloaded From https://www.WiseStockTrader.com /*RSIS Overbought/Oversold Indicator*/ /*Version 1.0*/ /*Last modified: 26-01-2002 by Thomas Zmuck*/ /*Adjustment-Part*/ pds = 5; P=RSI(pds); Movperiods=2; tp=3; A=2.5; /*Formula*/ y=Sum( Cum( 1 ),tp ); y1=( tp * Sum( Cum( 1 ) * P,tp ) - Sum( Cum( 1 ),tp) * Sum( P,tp) ) / (tp * Sum( ( Cum( 1 )*Cum(1)),tp ) - ( y*y ) ) * Cum( 1 ) + (MA(P,tp) - MA( Cum( 1 ),tp) * (tp * Sum( Cum( 1 ) * P,tp) - Sum( Cum( 1 ),tp ) * Sum( P,tp) ) / (tp * Sum( ( Cum( 1 )*Cum(1) ),tp) - ( y*y ) ) ); slope=LinRegSlope(P,tp); y2=IIf(slope>0 AND y1>HHV(P,3),HHV(P,3), IIf(slope<0 AND y1 Ref(RSIS,-1); Cond6 = CCI(30)<100 AND CCI(30)>-100; /*Buy and Sell Conditions*/ Buy = Ref(rsis,-1)<50 AND RSIs > Ref(RSIs,-1); Sell = Ref(rsis,-1)>70 AND RSIs < Ref(RSIs,-1); Buy = ExRem(Buy,Sell); Sell = ExRem(Sell,Buy); /*End Buy and Sell Conditions*/ /*Title-Part*/ Title = Name() + " RSIS periods = " + WriteVal(pds,1) + " movperiods = " + WriteVal(movperiods,1)+ " tp = " + WriteVal(tp,1.1) + " A = " + WriteVal(A,1.1); /*End Title-Part*/