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 (Declaration)
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
)

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

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

See Also