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 short position; the value is 1. Used in the Type field of the Position structure.

Type

number

See Also

Remarks

To close a short position, set the direction with exchange.SetDirection("closesell") and then place a buy order.