CQG POSITIONBRKT

CQG POSITIONBRKT – Position Bracket.

Order types: LMT

 

Method: Implements Bracket behavior using up to three targets for profit ( order type is controlled by dedicated algo parameter) and one stop (trigger behavior is controlled by dedicated algo parameter).

This algo may be used to create new position but is assumed to be used to manage an existing position.

All orders launched by the algo will be on the side of CQG POSITIONBRKT order.

Parameters:

 

Name

Tag number

Format

Comment

TargetStrategy

847

Int

1018 - CQG POSITIONBRKT

StopTicks

9602

Int

Number of ticks away from algo order price (higher for BUY, lower for SELL) to calculate price which when reached will result in launching ‘stop’ part of the algo.

Default – 0.

Shall be greater than or equal to 0.

OnStopTrigger

9604

Char

Defines how triggered stop order shall be executed.

Supported values:

0 – Limit - Launch native limit order at the trigger price.

1 – StaticPayup - Launch native limit order at a price level which is StopPayupTicks better than trigger price. Better means 'more aggressive' price, i.e., higher for BUY order.

2 – PayupAlgo - Launch payup algo order using trigger price as starting price of an order.

Default is 0 (Limit).

StopPayupTicks

9603

Int

Price offset in ticks for calculating stop order price.

0 - means same price as stop price

1 - means one tick better (more aggressive) than stop price.

Used when OnStopTrigger value is 1 (StaticPayup).

Default – 0.

Shall be greater than or equal to 0.

Target1PriceTicks

9610

Int

Number of ticks away from algo order price (lower for BUY, higher for SELL) to determine price of first profit target order.

Default – 0.

Shall be greater than or equal to 0.

Target1QtyPct

9611

Float

Percentage of algo order’s quantity to allocate to quantity of first profit target.

Default – 0.

Value range is [0.0; 1.0].

That parameter cannot be updated – algo will be terminated on attempt to change its value.

Target1OrderType

Char

9616

Order type for first target.

Supported values:

1 – Limit - Launch native limit order at the target price.

2 – TrailingStopAlgo - Wait until market crosses target price level then launch trailing stop algo order.

Default – 1 (Limit).

Target1TrailTicks

Int

9617

A tick distance from market (last trade price) to maintain.

Used when value of  Target1OrderType is 2 (TrailingStopAlgo).

Default – 0.

Target1OnTrigger

Char

9618

Defines how triggerred trailing stop order shall be executed if it was used for first target order.

Used when Target1OrderType is 2 (TrailingStopAlgo).

Supported values:

0 – Limit - Launch native limit order at the trigger price.

1 – StaticPayup - Launch native limit order at a price level which is TrailingStopPayupTicks better than trigger price. Better means 'more aggressive' price, i.e., higher for BUY order.

2 – PayupAlgo - Launch payup algo order using trigger price as starting price of an order.

Default is 0 (Limit).

Target2PriceTicks

9612

Int

Number of ticks away from algo order price (lower for BUY, higher for SELL) to determine price of second  profit target order.

Default – 0.

Shall be greater than or equal to 0.

Target2QtyPct

9613

Float

Percentage of algo order’s quantity to allocate to quantity of second profit target.

Default – 0.

Value range is [0.0; 1.0].

That parameter cannot be updated – algo will be terminated on attempt to change its value.

Target2OrderType

Char

9619

Order type for second target.

Supported values:

1 – Limit - Launch native limit order at the target price.

2 – TrailingStopAlgo - Wait until market crosses target price level then launch trailing stop algo order.

Default – 1 (Limit)

Target2TrailTicks

Int

9620

A tick distance from market (last trade price) to maintain.

Used when value of  Target2OrderType is 2 (TrailingStopAlgo).

Default – 0.

Target2OnTrigger

Char

9621

Defines how triggerred trailing stop order shall be executed if it was used for second target order.

Used when Target2OrderType is 2 (TrailingStopAlgo).

Supported values:

0 – Limit - Launch native limit order at the trigger price.

1 – StaticPayup - Launch native limit order at a price level which is TrailingStopPayupTicks better than trigger price. Better means 'more aggressive' price, i.e., higher for BUY order.

2 – PayupAlgo - Launch payup algo order using trigger price as starting price of an order.

Default is 0 (Limit).

Target3PriceTicks

9614

Int

Number of ticks away from algo order price (lower for BUY, higher for SELL) to determine price of third profit target order.

Default – 0.

Shall be greater than or equal to 0.

Target3QtyPct

9615

Float

Percentage of algo order’s quantity to allocate to quantity of third profit target.

Default – 0.

Value range is [0.0; 1.0].

That parameter cannot be updated – algo will be terminated on attempt to change its value.

Target3OrderType

Char

9622

Order type for third target.

Supported values:

1 – Limit - Launch native limit order at the target price.

2 – TrailingStopAlgo - Wait until market crosses target price level then launch trailing stop algo order.

Default – 1 (Limit)

Target3TrailTicks

Int

9623

A tick distance from market (last trade price) to maintain.

Used when value of  Target3OrderType is 2 (TrailingStopAlgo).

Default – 0.

Target3OnTrigger

Char

9624

Defines how triggerred trailing stop order shall be executed if it was used for third target order.

Used when Target3OrderType is 2 (TrailingStopAlgo).

Supported values:

0 – Limit - Launch native limit order at the trigger price.

1 – StaticPayup - Launch native limit order at a price level which is TrailingStopPayupTicks better than trigger price. Better means 'more aggressive' price, i.e., higher for BUY order.

2 – PayupAlgo - Launch payup algo order using trigger price as starting price of an order.

Default is 0 (Limit).

TrailingStopPayupTicks

Int

9625

Price offset in ticks for limit order with static payup launched on trailing stop trigger.

0 - means same price as trigger price, 1 - means one tick better than trigger price.

Better means 'more aggressive' price, i.e., higher for BUY order.

Used when target order type is TrailingStopAlgo and its trigger behavior is StaticPayup.

This parameter is shared between all target orders with trailing stop order which trigger behavior is chosen to be StaticPayup.

Shall be greater than or equal to 0.

PayupModel

9105

Char

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

ModelSensitivity

9111

Float

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

OppositeSizeRatio

9120

Float

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

OppositeSizeRaw

9130

Int

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

OnMiss

9106

Char

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

MaxChaseTicks

8202

Int

See CQG PAYUP algo.

Shared between all orders which dedicated ‘OnTrigger’ parameter value is 2 (PayupAlgo).

 

Depending on CQG POSITIONBRKT algo order side it distributes its quantity for up to three BUY or SELL (BUY side algo will send BUY side children, not both sides; same logic applies to SELL side algo order) profit target orders at the prices better than order’s price but will try to execute its remaining quantity if market worsens (moves in a worse direction for a number of stop ticks).