Syntax
Public Function OpenPositionByTicket (ByVal Ticket As Integer) As CPosition
Description
This function is used to return the symbol Position objectby the given ticket number.
Parameters
Parameter | Description |
Ticket | Position ticket number. Value of type is Integer. |
Return value
Returns
Sample
Public Sub main() Dim vPostion As VTLGeneral.CPosition Dim vTicket as Integer = 138686 ' change with ticket number you want VPostion = ClientCode.OpenPositionByTicket (vTicket) if not vPostion is nothing then GUI.MsgDialog (The position type is: & vPostion.buySell) end if End Sub
See Also