.netCHARTING v10.5 Documentation


dotnetCHARTING Namespace > FinancialEngine Class > AveragePrice Method : AveragePrice(String,Series) Method
The name of the series which will be displayed on the chart, i.e. its label.
A financial series, where the first element is the traded price on the most recent period, the second element is the traded price of the previous periods and so on, for the asset under consideration.
AveragePrice(String,Series) Method
Evaluates the Average Price for each periods of a collection of periods.
Syntax
'Declaration
 
Public Overloads Shared Function AveragePrice( _
   ByVal seriesName As String, _
   ByVal s As Series _
) As Series
'Usage
 
Dim seriesName As String
Dim s As Series
Dim value As Series
 
value = FinancialEngine.AveragePrice(seriesName, s)
public static Series AveragePrice( 
   string seriesName,
   Series s
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
A financial series, where the first element is the traded price on the most recent period, the second element is the traded price of the previous periods and so on, for the asset under consideration.

Return Value

A series where the first element is the Average Price of the asset on the most recent period considered, the second term is the Average Price on the period before that and so on.
Exceptions
ExceptionDescription
Thrown if the High, Low, Open, Close are strictly negative.
Remarks
The Average price is just the average of the High, Low, Open and Close of each of the trading periods ranges, where the period considered will generally a day, however the Average price is equally applicable to other time spans and hence the period considered could be (for example) a month or year.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also