[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RSI of Stochastics



PureBytes Links

Trading Reference Links

Here is one that works for TS6.  Should work for yours.

Randy


Input: Price(close),RSILen(5),Length(3);
Var:StochRSI1(0), Value2(0), Value3(0);
{StochRSI1 = 
    (Summation(RSI(Price, RSILen) - 
    Lowest(RSI(Price, RSILen), Length),3)) / 
    (Summation(Highest(RSI(Price, RSILen), Length) - 
    Lowest(RSI(Price, RSILen), Length),3));}
Value2=(Summation(RSI(Price, RSILen) - 
    Lowest(RSI(Price, RSILen), Length),3));
Value3=(Summation(Highest(RSI(Price, RSILen), Length) - 
    Lowest(RSI(Price, RSILen), Length),3));
StochRSI1 = Iff(Value2=0,0,Value2/Value3);

Plot1(StochRSI1 *100,"StochRSI");
Plot2(80);
Plot3(20);