Syntax
Public Function SelectOrderByIndex(ByVal Index As Integer) As Boolean.
Description
This function is used to choose the order by the given index in thetrade list.
Parameters
Parameter | Description |
Index |
Orderindex in thetrade list,. Value of type is Integer. |
Return value
Returns true if the order was 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(),OrderPrice().
Sample
Public Sub main() Dim Result as Boolean Result = ClientCode.SelectOrderByIndex(1) select the first order at trade list at client terminal GUI.MsgDialog(Result) End Sub
See Also