PDA

View Full Version : how to find the orderlots in vtl



ankitkalindi
10-08-2013, 06:53 AM
hi can somebody tell me how to find the orderlots in vtl that we have in mt4 to find the orderlots?

b_morar
10-08-2013, 08:38 AM
Dear Sir,


I- you can get the order lot as following using VTL server:



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 & "- Lots: " & COrder.Lots
GUI.MSGDialog(S)
Next
End Sub

II-You can get the order lot as following using VTL client





Public Sub main()
Dim ID
ID=96726
MsgBox OrderLots(Clng(ID))
End Sub

Please use the following links to get more information about Vertex Trading Language (VTL):

1-VTL Server (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2566)
2-VTL Client (http://www.hybrid-solutions.com/support/index.php?/Knowledgebase/Article/View/2567)

Note: Read this presentation (http://www.hybrid-solutions.com/VTL%20Course.pdf) that will assist you to be VTL programmer.

ankitkalindi
10-08-2013, 10:30 AM
thanks for your reply