Welles Wilder’s Relative Strength Index (RSI) 0

Posted on 6, September 2013

in Category SID

Description for RSId SID 825

Welles Wilder’s Relative Strength Index (RSI) is a popular oscillator that ranges between zero and 100. Reading’s above 70 indicate the instrument is overbought, while readings below 30 indicate the instrument is oversold. Popular values for the RSI inclu

Welles Wilders Relative Strength Index (RSI)/sid The logic for this technical analysis indicator:


#In this version of the RSI, a data column can be passed to the indicator rather than using the 
#default (close values).

#It's interpretation is the exactly the same as the standard RSI.

#Example: RSIdata(Open,14);

my ($data,$period)=@_;  

my $yes=Ref($data,-1);

my $up=If($data>$yes,$data-$yes,0);
my $down=If($data<$yes,$yes-$data,0);

my $smoothup   = WWS($up,$period,1);
my $smoothdown = WWS($down,$period,1);

return 100-(100/(1+($smoothup/$smoothdown)));


Leave a Message