|Visual Basic (Declaration)|
Public Overloads Shared Function RelativeStrengthIndex( _ ByVal sc As SeriesCollection, _ ByVal lengthOfPeriod As Integer _ ) As SeriesCollection
|Visual Basic (Usage)||Copy Code|
- 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.
- An integer which represents the length of the period over which the indicator will be iteratively evaluated.
The RSI indicator is calculated by the following formula:
RSI = 100 - 100/(1+RS),
RS = (Average of noOfPeriods days up closes) / (Average of noOfPeriods days' down closes),
An RSI above 70 is considered overbought and below 30 is considered oversold.