CQG API 4.0 - Revised
CreateExecutionPattern Method
See Also  Send Feedback
cqg_definition

Strategy definition, for which the default pattern should be created

order_type

Type of the order, for which the default pattern should be created

CQGCEL Interface : CreateExecutionPattern Method

Glossary Item Box

Description

Creates an empty or default strategy execution pattern.

Syntax

Visual Basic
Public Function CreateExecutionPattern( _
   Optional ByVal cqg_definition As CQGStrategyDefinition = 0, _
   Optional ByVal order_type As eOrderType = otUndefined _
) As CQGExecutionPattern

Parameters

cqg_definition

Strategy definition, for which the default pattern should be created

order_type
ValueDescription
otLimit

Limit order.

otMarket

Market order.

otStop

Stop order.

otStopLimit

Stop Limit order.

otUndefined

Undefined order type.

Type of the order, for which the default pattern should be created

Return Type

A CQGExecutionPattern Object object, which represents the newly created execution pattern.

Remarks

If no parameter is specified an empty pattern is created; otherwise, a default pattern is created.

Note, that both parameters should be specified to create the default pattern, otherwise an exception will be thrown.

See Also