Visual Basic (Declaration)  

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


C#  

public static Series AroonDownOverPeriod( Series s, int lengthOfPeriod ) 
Parameters
 s
 A financial series where the first term is the traded high of the asset within the most recent trading period, the second term is the traded high of the asset within the previous period and so on.
 lengthOfPeriod
 An integer which represents the length of the period over which the indicator will be iteratively evaluated.
The indicator for each period will return a value between 0 and 100, where a higher
value indicates that the lowest low was achieved more recently. Persistent values between 70
and 100 are said to indicate weakness in the asset and in conjunction with a low range (i.e. 030)
in the Aroon Up indicator, indicates an downward trend.
Evaluation of the Aroon Down Indicator
The Aroon Down 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).