Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 07 September 2020 12:52 PM


Public Sub CloseOrderResult(Result As VTLServerApplication.NewOrderResultEnum, ByRef AtPrice As Double, ByRef PosOrOrder As Short, ByRef OrderId As Integer, ByRef BuySell As VTLServerApplication.OperationTypeEnum, ByRef Lots As Double, ByRef Symbol As VTLServerApplication.CSymbol, ByRef ServerTime As String, ByRef OpenTicket As Integer)


This event generates after calling the CloseMarketOrder and receive its result.


Key Description 
Result The response from the server,value of type NewOrderResultEnum.
AtPrice Price that order close on it ,value of type double.
PosOrOrder If 1 it means the position was closed automatically,2 means the order transferred to BackOffice side as market order, value of type Short.
OrderID The order number If PosOrOrder = 2 ,value of type Integer.
BuySell Operation type,value of type OperationTypeEnum.
Lots Amount of lot , value of type Double.
Symbol Trading symbol object ,value of type CSymbol.
ServerTime The server time at closing moment , value of type String .
OpenTicket Ticket number of closed open position , value of type Integer.

Use this event know the result for the close order.

See Also

Back to VTL Server Script Index

The same string that was sent through CloseMarketOrder method.
The same string that was sent through CloseMarketOrder method.
(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
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