Builds bars from a collection of tick data for the specified frequency.

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

Syntax

C#
public static RList<BarData> GetBars(
	List<TickData> ticks,
	int freq
)
Visual Basic
Public Shared Function GetBars ( 
	ticks As List(Of TickData),
	freq As Integer
) As RList(Of BarData)
Visual C++
public:
static RList<BarData^>^ GetBars(
	List<TickData>^ ticks, 
	int freq
)
F#
static member GetBars : 
        ticks : List<TickData> * 
        freq : int -> RList<BarData> 

Parameters

ticks
Type: System.Collections.Generic..::..List<(Of <(<'TickData>)>)>
Collection of ticks.
freq
Type: System..::..Int32
Frequency to build the bar collection

Return Value

Type: RList<(Of <(<'BarData>)>)>
Collection of BarData.

Remarks

This instance of the class always uses the "last" price. To build the bar data based on another bar element use the GetBars function that allows a BarConstructionType parameter.

See Also