CQG API 4.0 - Revised
IndicesForDates Method
See Also  Send Feedback
date_1

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

date_2

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

start_index

Specifies the start indices to be set

end_index

Specifies the end indices to be set

CQGTicks Collection : IndicesForDates Method

Glossary Item Box

Description

Returns start and end indices for specified dates.

Syntax

Visual Basic
Public Sub IndicesForDates( _
   ByVal date_1 As Date, _
   ByVal date_2 As Date, _
   ByRef start_index As Long, _
   ByRef end_index As Long _
) 

Parameters

date_1

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

date_2

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

start_index

Specifies the start indices to be set

end_index

Specifies the end indices to be set

Remarks

If in this CQGTicks, there are CQGTick objects having their Timestamp in the range [date_1, date_2), then after the call the range [start_index, end_index] will specify the indices of all such CQGTick objects.

An exception is thrown if date_1 is not earlier than date_2.

Otherwise if no such record exists, both start_index and end_index will be invalid.

See Also