Syntax
Public Function PositionGetTicket(Index As Integer) As String
Description
This function is used to return the ticket number for a given open positionindex on the trade list.
Parameters
Key | Description |
Index | Open position index at the trade list, A value of type Integer. |
Return value
Returns ticket number as a String value. If an empty string is returned call GetLastError() function to get an error.
Sample
Public Sub main () AlertMessage PositonGetTicket (1)Returns ticket number for first position at the trade list End sub
See Also