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 index to be set

end_index

Specifies the end index to be set

CQGTradingSystemStatisticsCollection Collection : IndicesForDates Method

Glossary Item Box

Description

Returns the start and end indices for the 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 index to be set

end_index

Specifies the end index to be set

Remarks

If in this CQGTradingSystemStatisticsCollection there are CQGTradingSystemStatistics objects having their Timestamps in the range [date_1, date_2), then after the call the range [start_index, end_index] will specify the indices of all such CQGTradingSystemStatistics 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