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


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An series of length equal or greater to the number of periods considered in the indicator evaluation where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
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 seriesName As String, _
   ByVal s As Series, _
   ByVal noOfDays As Integer _
) As Series
Visual Basic (Usage) Copy Code
Dim seriesName As String
Dim s As Series
Dim noOfDays As Integer
Dim value As Series
 
value = FinancialEngine.HighestPeriod(seriesName, s, noOfDays)
C#  
public static Series HighestPeriod( 
   string seriesName,
   Series s,
   int noOfDays
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An series of length equal or greater to the number of periods considered in the indicator evaluation where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
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

Exception Description
ArgumentException Thrown if the given series has strictly negative elements or if the noOfDays argument is greater then the length of prices array.

See Also