Syntax
Public Function GetPositionType() As OperationTypeEnum
Description
This function is used to return the position operation type for Selected Position.
Parameter
No parameters.
Return value
Returns an integer value of type OperationTypeEnum 1 means buy type , -1 means sell type. If 0 is returned, then call GetLastError() function to get error.
Sample
Public Sub main () Dim Price Dim Commission Dim Amount Ticket = PositonGetTicket (1) PositionSelect (Clng (Ticket))Returns True if position selected successfully AlertMessage GetPositionType () End sub
See Also