CQG API 4.0 - Revised
DefineStrategyEx Method
See Also  Send Feedback
expression_string

Spread expression or QFormula name/number.

The QFormula name should be passed in the following format: "Q.Q_Formula_Name" (for example, "Q.MyFormula").

The QFormula number should be passed in the following format: "QQ_Formula_Number" (for example, "Q8").

cqg_account
CQG trading account, type of CQGAccount, for proper strategy registration on CQG Gateway.
CQGCEL Interface : DefineStrategyEx Method

Glossary Item Box

Description

Requests for the strategy definition on CQG Gateway.

Syntax

Visual Basic
Public Function DefineStrategyEx( _
   ByVal expression_string As String, _
   ByVal cqg_account As CQGAccount _
) As CQGStrategyDefinition

Parameters

expression_string

Spread expression or QFormula name/number.

The QFormula name should be passed in the following format: "Q.Q_Formula_Name" (for example, "Q.MyFormula").

The QFormula number should be passed in the following format: "QQ_Formula_Number" (for example, "Q8").

cqg_account
CQG trading account, type of CQGAccount, for proper strategy registration on CQG Gateway.

Return Type

CQGStrategyDefinition object, represented as CQGStrategyDefinition.

Remarks

An exception will be thrown if an asynchronous request could not be made.

Otherwise, returns a CQGStrategyDefinition object, which doesn't contain any data yet and which status is eStrategyRequestStatus.srsNotActive.

See Also