Aggregates a list of bars to the specified frequency.

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

Syntax

C#
[ObsoleteAttribute]
public static RList<BarData> AggregateBars(
	RList<BarData> bars,
	int freq
)
Visual Basic (Declaration)
<ObsoleteAttribute> _
Public Shared Function AggregateBars ( _
	bars As RList(Of BarData), _
	freq As Integer _
) As RList(Of BarData)
Visual C++
[ObsoleteAttribute]
public:
static RList<BarData^>^ AggregateBars(
	RList<BarData^>^ bars, 
	int freq
)

Parameters

bars
Type: RightEdge.Common..::.RList<(Of <(BarData>)>)
Input bar collection.
freq
Type: System..::.Int32
New frequency.

Return Value

Aggregated bar collection.

Remarks

The input collection must be of a higher resolution than the requested frequency. For example, a 1 minute bar collection cannot be produced with a 5 minute input collection.

See Also