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
<ObsoleteAttribute>
Public Shared Function AggregateBars ( 
	bars As RList(Of BarData),
	freq As Integer
) As RList(Of BarData)
Visual C++
public:
[ObsoleteAttribute]
static RList<BarData^>^ AggregateBars(
	RList<BarData^>^ bars, 
	int freq
)
F#
[<ObsoleteAttribute>]
static member AggregateBars : 
        bars : RList<BarData> * 
        freq : int -> RList<BarData> 

Parameters

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

Return Value

Type: RList<(Of <(<'BarData>)>)>
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