RelativeStrengthIndex(SeriesCollection,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 sc As SeriesCollection, _ ByVal lengthOfPeriod As Integer _ ) As SeriesCollection
'Usage Dim sc As SeriesCollection Dim lengthOfPeriod As Integer Dim value As SeriesCollection value = FinancialEngine.RelativeStrengthIndex(sc, lengthOfPeriod)
public static SeriesCollection RelativeStrengthIndex( SeriesCollection sc, int lengthOfPeriod )
Parameters
- sc
- A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
- 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