dotnetCHARTING Send comments on this topic.
HighestPeriod(SeriesCollection,Int32) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > HighestPeriod Method : HighestPeriod(SeriesCollection,Int32) Method


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.
noOfDays
The number of days before to which the closing price is compared.
Returns the highest value of prices over all values given. Returns a series which contains the higher highs values of prices array within a given period considering a look back period of n days.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function HighestPeriod( _
   ByVal sc As SeriesCollection, _
   ByVal noOfDays As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim noOfDays As Integer
Dim value As SeriesCollection
 
value = FinancialEngine.HighestPeriod(sc, noOfDays)
C# 
public static SeriesCollection HighestPeriod( 
   SeriesCollection sc,
   int noOfDays
)

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.
noOfDays
The number of days before to which the closing price is compared.

Return Value

a series where the first term is the high calculated for the most recent trading period, the second term is the high for the previous trading period and so on.

Exceptions

ExceptionDescription
ArgumentExceptionThrown if the given series has strictly negative elements or if the noOfDays argument is greater then the length of prices array.

See Also

©2002 - 2008 Webavail Productions Inc. & Corporate Web Solutions Ltd. All Rights Reserved.