Visual Basic (Declaration)  

Public Overloads Shared Function AroonUpOverPeriod( _ ByVal s As Series, _ ByVal lengthOfPeriod As Integer _ ) As Series 
Visual Basic (Usage)  Copy Code 


C#  

public static Series AroonUpOverPeriod( Series s, int lengthOfPeriod ) 
Parameters
 s
 An financial series of the trading highs over the last nperiods where the kth term of the array if the trading high on the kth previous period.
 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. 030)
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).