RelativeStrengthIndex(Series,Int32) Method
Implements the Relative Strength Indicator (RSI), developed by J. Welles Wilder in 1978; which measures the relative internal strength of a market. Please note that this indicator is not measured against another market or index. RSI measures the relative changes between higher and lower closing prices.
Syntax
'Declaration Public Overloads Shared Function RelativeStrengthIndex( _ ByVal s As Series, _ ByVal lengthOfPeriod As Integer _ ) As Series
'Usage Dim s As Series Dim lengthOfPeriod As Integer Dim value As Series value = FinancialEngine.RelativeStrengthIndex(s, lengthOfPeriod)
public static Series RelativeStrengthIndex( Series s, int lengthOfPeriod )
Parameters
- s
- An series where the first element is the high in the last trading period, the second term is the high in the previous period and so on.
- lengthOfPeriod
- An integer which represents the length of the period over which the indicator will be iteratively evaluated.
Remarks
Evaluation
The RSI indicator is calculated by the following formula:
RSI = 100 - 100/(1+RS)
,
where:
RS = (Average of noOfPeriods days up closes) / (Average of noOfPeriods days' down closes)
,
Interpretation
An RSI above 70% is considered overbought and below 30% is considered oversold.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also