Syntax
Public Function PositionGetSymbol(Index As Integer) As String
Description
This function is used to get the position symbol name for a given index to an open position on the trade list.
Parameters
Key | Description |
Index | The index of the open position on the trade list, a value of type Integer. |
Return value
Returns symbol name as avalue of type String value. If an empty string returned, then call GetLastError() function to get error.
Sample
Public Sub main () AlertMessage PositionGetSymbol (1)Returns Symbol name for first position at the trade list End sub
See Also