Find a bar in an RList based on a date.

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

Syntax

C#
public static int BarLookBackFromDate(
	RList<BarData> bars,
	DateTime date
)
Visual Basic
Public Shared Function BarLookBackFromDate ( 
	bars As RList(Of BarData),
	date As DateTime
) As Integer
Visual C++
public:
static int BarLookBackFromDate(
	RList<BarData^>^ bars, 
	DateTime date
)
F#
static member BarLookBackFromDate : 
        bars : RList<BarData> * 
        date : DateTime -> int 

Parameters

bars
Type: RightEdge.Common..::..RList<(Of <(<'BarData>)>)>
RList containing a series of BarData
date
Type: System..::..DateTime
The date to find the bar for.

Return Value

Type: Int32
Integer containing the lookback at which the bar was found, or -1 if the bar is not found.

See Also