Syntax
Public Function OrderGetID(Index As Integer) As Long
Description
This function is used to return order number based on its index in the orders list.
Parameters
Key | Description |
Index | Order index in the orders list , value of type Integer. |
Return value
Returns order number, If -1 is returned call GetLastError() function to get an error.
Sample
Public Sub main () AlertMessage OrderGetID (1) Returns Order number for first order at trade list End sub
See Also