Creates an empty or default strategy execution pattern.
Visual Basic |
---|
Public Function CreateExecutionPattern( _ Optional ByVal cqg_definition As CQGStrategyDefinition = 0, _ Optional ByVal order_type As eOrderType = otUndefined _ ) As CQGExecutionPattern |
- cqg_definition
Strategy definition, for which the default pattern should be created
- order_type
Value Description 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
A CQGExecutionPattern Object object, which represents the newly created execution pattern.
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.