Calculates the timestamp for a tick inside a bar.

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

Syntax

C#
public static DateTime GetBarTime(
	DateTime barStartTime,
	DateTime barEndTime,
	double ratio
)
Visual Basic
Public Shared Function GetBarTime ( 
	barStartTime As DateTime,
	barEndTime As DateTime,
	ratio As Double
) As DateTime
Visual C++
public:
static DateTime GetBarTime(
	DateTime barStartTime, 
	DateTime barEndTime, 
	double ratio
)
F#
static member GetBarTime : 
        barStartTime : DateTime * 
        barEndTime : DateTime * 
        ratio : float -> DateTime 

Parameters

barStartTime
Type: System..::..DateTime
The bar start time
barEndTime
Type: System..::..DateTime
The bar end time
ratio
Type: System..::..Double
How far through the bar the returned time should be. Zero means the start of the bar, One means just before the bar end time.

Return Value

Type: DateTime
A time greater than or equal to the bar start time and strictly less than the bar end time.

See Also