Syntax
Public Function SelectOrderByID (ByVal OrderID As Integer) As Boolean.
Parameters
This function is used to choose the order by the given IDnumber to get order information.
Parameter | Description |
OrderID |
Orderindex in thetrade list. Value of type is Integer. |
Return value
Returns true if order selected successfully otherwise returns false.
Note:
After choosing the order you can inquire about the property for the selected position using OrderGetDouble(), OrderGetInteger(), OrderGetString(), OrderSymbol(), OrderTime(), OrderType().
Sample
Public Sub main() Dim OrderID as Long = ClientCode.orderGetID (1) Dim Result as Boolean Result = ClientCode.SelectOrderByID (OrderID) select the first order at trade list at client terminal GUI.MsgDialog(Result) End Sub
See Also