OrderByIndex
Posted by Mohammad Rahhal, Last modified by Abdullah Almasharfah on 07 December 2018 04:29 PM

Syntax

Public Function OrderByIndex(ByVal Index As Integer) As Order

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


Back to VTL Server Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions