Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
PD_LONG
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.