Public Sub NewOrderResult(ByRef 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 TransTage As String)
This event generates after calling the NewMarketOrder and receive its result.
||The response from the server, Value of type NewOrderResultEnum.
||The market order requested the price, value of type Double.
||If 1 it means the position was closed automatically,2 means the order transferred to BackOffice side and it’s pending, value of type Short.
||Number of order when the PosOrOrder = 2 , value of type Integer.
||Operation type,value of type OperationTypeEnum.
||Amount of lots, the value of type Double.
||Trading symbol object, the value of type CSymbol
||The server time when the operation proceeds, the value of type String.
||The same string that was sent through NewMarketOrder method.
Use this event know the result for the new order.
Back to VTL Server Script Index