dotnetCHARTING Send comments on this topic.
RelativeStrengthIndex(SeriesCollection,Int32) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > RelativeStrengthIndex Method : RelativeStrengthIndex(SeriesCollection,Int32) Method


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.
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

Visual Basic (Declaration) 
Overloads Public Shared Function RelativeStrengthIndex( _
   ByVal sc As SeriesCollection, _
   ByVal lengthOfPeriod As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim lengthOfPeriod As Integer
Dim value As SeriesCollection
 
value = FinancialEngine.RelativeStrengthIndex(sc, lengthOfPeriod)
C# 
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.

See Also