Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function AroonUpOverPeriod( _ ByVal sc As SeriesCollection, _ ByVal lengthOfPeriod As Integer _ ) As SeriesCollection |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static SeriesCollection AroonUpOverPeriod( 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.
Return Value
Returnsa series where the first term is the values of the Aroon Up indicator over the earliest set of consecutive periods and the second term is the value of the next set of the periods (i.e. the windows is moving one place along), and so on. This indicator for each period will return a value between 0 and 100, where a higher
value indicates that the highest high was achieved more recently. Persistent values between 70
and 100 are said to indicate strength in the asset and in conjunction with a low range(i.e. 0-30)
of the Aroon Down indicator, indicates an upward trend.
Evaluation of the Aroon Up Indicator
The Aroon Up indicator for each period is given by:
100(n - (number of days since last highest high over n days))/n
where n is the number of days being considered (a reasonable default value for n is 14).