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

PD_LONG is the value of the Type property in the Position structure, representing a long position type.

Type

number

See Also

Remarks

The value of PD_LONG is 0.

For long positions in futures markets, use exchange.SetDirection("closebuy") to set the closing direction to close this type of position.

PD_SHORT is the value of the Type property in the Position structure, representing a short position type.

Type

number

See Also

Remarks

The value of PD_SHORT is 1.

For short positions in futures markets, use exchange.SetDirection("closesell") to set the closing direction to close this type of position.