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


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
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.
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) 
Public Overloads Shared Function RelativeStrengthIndex( _
   ByVal seriesName As String, _
   ByVal s As Series, _
   ByVal lengthOfPeriod As Integer _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim s As Series
Dim lengthOfPeriod As Integer
Dim value As Series
 
value = FinancialEngine.RelativeStrengthIndex(seriesName, s, lengthOfPeriod)
C# 
public static Series RelativeStrengthIndex( 
   string seriesName,
   Series s,
   int lengthOfPeriod
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
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.

See Also

© 2021 All Rights Reserved.