Calculates the average price of the high, low and close price

Namespace: RightEdge.Indicators
Assembly: Indicators (in Indicators.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public static double AvgPriceValue(
	List<BarData> bars,
	int index
)
Visual Basic
Public Shared Function AvgPriceValue ( 
	bars As List(Of BarData),
	index As Integer
) As Double
Visual C++
public:
static double AvgPriceValue(
	List<BarData^>^ bars, 
	int index
)
F#
static member AvgPriceValue : 
        bars : List<BarData> * 
        index : int -> float 

Parameters

bars
Type: System.Collections.Generic..::..List<(Of <(<'BarData>)>)>
A list of bar data.
index
Type: System..::..Int32
The location of the bar to be calculated in the bar data list.

Return Value

Type: Double
A double containing the average price.

See Also