Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
EXCHANGE
ORDER_STATE
ORDER_TYPE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
PD_LONG
PD_SHORT
ORDER_OFFSET
PERIOD
LOG_TYPE
Conventions
Exchanges

A long position; the value is 0. Used in the Type field of the Position structure.

Type

number

See Also

Remarks

To close a long position, set the direction with exchange.SetDirection("closebuy") and then place a sell order.