Type/to search
Built-in Functions
Structures
Built-in Variables
EXCHANGE
exchange
exchanges
ORDER_STATE
ORDER_TYPE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
ORDER_OFFSET
PERIOD
LOG_TYPE

ORDER_CONDITION_TYPE_OCO is the value of the ConditionType property in the Condition structure, representing OCO orders (One-Cancels-the-Other). OCO orders set both take-profit and stop-loss conditions simultaneously. When one condition is triggered, the other condition is automatically cancelled.

Type

number

See Also

Remarks

The value of ORDER_CONDITION_TYPE_OCO is 0.

ORDER_CONDITION_TYPE_TP is the ConditionType attribute value in the Condition structure, representing a Take Profit order. A take profit order automatically triggers when the market price reaches the preset target profit price.

Type

number

See Also

Remarks

The value of ORDER_CONDITION_TYPE_TP is 1.

ORDER_CONDITION_TYPE_SL is the ConditionType attribute value in the Condition structure, representing a Stop Loss order. A stop loss order is automatically triggered when the market price reaches the preset stop loss price, used to limit potential losses.

Type

number

See Also

Remarks

The value of ORDER_CONDITION_TYPE_SL is 2.

ORDER_CONDITION_TYPE_GENERIC is the ConditionType property value in the Condition structure, representing a generic conditional order. The specific behavior of generic conditional orders depends on the exchange implementation.

Type

number

See Also

Remarks

The value of ORDER_CONDITION_TYPE_GENERIC is 3.