Click or drag to resize

HistoryMultipleDataQueueTGetIndexByTime Method

Get offset index of element by element time. If there no element with such time, we return latest element with time smaller than specified. If we can't find valid index, we return -1.

Namespace:  FinAnalysis.Base
Assembly:  FinAnalysis.Base (in FinAnalysis.Base.dll) Version: 2.1.13-cc97e13414b71fde928e8f3a546ac1daf26f295f
Syntax
C#
public int GetIndexByTime(
	DateTime time
)

Parameters

time
Type: SystemDateTime
Element time.

Return Value

Type: Int32
Zero-based index of desired point starting from latest one.
See Also