Syntax
Public Function OrderByIndex(ByVal Index As Integer) As Order
Description
This function used to returns an order object for a specific order index at the trading list on the client terminal.
Parameters
Parameter | Description |
Index | The Index of Order at the trading list, the value of type Integer. |
Return value
Returns order that corresponding with the index.
Sample
Public Sub main() Dim COrder As VTLGeneral.Order Dim i Dim S As String For i = 1 To ClientCode.OrdersTotal() S = S & i.ToString() COrder = ClientCode.OrderByIndex(i) S = S & " OrderId:" & COrder.OrderId.Tostring() S = S & " BuySell: " & COrder.BuySell.Tostring() S = S & " Lots: " & COrder.Lots S = S & " OrderTicket: " & COrder.OrderTicket.Tostring() S = S & " OrderTime: " & COrder.OrderTime.Tostring() S = S & " OrderType: " & COrder.OrderType.Tostring() S = S & " Sl: " & COrder.Sl.Tostring() S = S & " SymbolID: " & COrder.SymbolID.Tostring() S = S & " SymbolName: " & COrder.SymbolName.Tostring() S = S & " TP: " & COrder.TP.Tostring() S = S & " LimitPrice: " & COrder.LimitPrice.Tostring() GUI.MSGDialog(S) S = "" Next End Sub
See Also