Syntax
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)
Description
This event generates after calling the CloseMarketOrder and receive its result.
Parameters
Key | Description |
Result | The response from the server,value of typeNewOrderResultEnum. |
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 numberIf PosOrOrder = 2 ,value of type Integer. |
BuySell | Operation type,valueof typeOperationTypeEnum. |
Lots | Amount of lot , value of type Double. |
Symbol | Trading symbol object ,valueof typeCSymbol. |
ServerTime | The server time at closing moment , value of type String . |
OpenTicket | Ticket number of closed open position , value of type Integer. |
Remark
Use this event know the result for the close order.
See Also
Back to VTL Server Script Index
The same string that was sent throughCloseMarketOrdermethod. |
The same string that was sent throughCloseMarketOrdermethod. |