Builds a bar from a tick collection

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

Syntax

C#
public static BarData CreateBarFromTicks(
	List<TickData> ticks,
	DateTime time,
	double prevClose,
	BarConstructionType constructionType
)
Visual Basic
Public Shared Function CreateBarFromTicks ( 
	ticks As List(Of TickData),
	time As DateTime,
	prevClose As Double,
	constructionType As BarConstructionType
) As BarData
Visual C++
public:
static BarData^ CreateBarFromTicks(
	List<TickData>^ ticks, 
	DateTime time, 
	double prevClose, 
	BarConstructionType constructionType
)
F#
static member CreateBarFromTicks : 
        ticks : List<TickData> * 
        time : DateTime * 
        prevClose : float * 
        constructionType : BarConstructionType -> BarData 

Parameters

ticks
Type: System.Collections.Generic..::..List<(Of <(<'TickData>)>)>
Tick collection
time
Type: System..::..DateTime
time of bar
prevClose
Type: System..::..Double
previous close value.
constructionType
Type: RightEdge.Common..::..BarConstructionType
Builds the last price from the specified bar element.

Return Value

Type: BarData
A constructed bar.

See Also