The resource loading... loading...

PD_LONG

PD_LONG is the value of the Type attribute in the {@struct/Position Position} structure, indicating the long position type.

number

The value of PD_LONG is 0. For long positions in the contract market, use exchange.SetDirection(“closebuy”) to set the direction to close the position and close the position of that type.

{@var/POSITION_DIRECTION/PD_SHORT PD_SHORT}

ORDER_TYPE PD_SHORT