CQG API 4.0 - Revised
IndexForDate Method
See Also  Send Feedback
date_

Specifies the date, in the user-configured time zone (CQGAPIConfig.TimeZoneCode)

CQGTimedBars Collection : IndexForDate Method

Glossary Item Box

Description

Returns the start index for the specified date.

Syntax

Visual Basic
Public Function IndexForDate( _
   ByVal date_ As Date _
) As Long

Parameters

date_

Specifies the date, in the user-configured time zone (CQGAPIConfig.TimeZoneCode)

Return Type

 

Remarks

If in this CQGTimedBars, there are CQGTimedBar objects having their Timestamps equal to date_, the first such record's index is returned.

Otherwise, the returned value will be invalid.

See Also