Builds bars from a collection of tick data for the specified frequency.
Namespace:
RightEdge.CommonAssembly: 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 (Declaration) |
|---|
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 ) |
Parameters
- ticks
- Type: System.Collections.Generic..::.List<(Of <(TickData>)>)
Collection of ticks.
- freq
- Type: System..::.Int32
Frequency to build the bar collection
Return Value
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.