Click or drag to resize

SharpScriptBaseGetBarIndexFromTime Method (Bars, DateTime)

Gets the bar index from time. Returns -1 if time is beyond the bars range

Namespace:  SharpCharts.Base.SharpScript
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
protected int GetBarIndexFromTime(
	Bars bars,
	DateTime time
)

Parameters

bars
Type: SharpCharts.Base.DataBars
Bars
time
Type: SystemDateTime
Time

Return Value

Type: Int32
See Also