Visual Basic |
---|
Public Function DefineStrategyEx( _ ByVal expression_string As String, _ ByVal cqg_account As CQGAccount _ ) As CQGStrategyDefinition |
- 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.
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.