Syntax
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)
Description
This event generates after calling the
Parameters
Key | Description |
Result | The response from the server, Value of typeNewOrderResultEnum. |
The market order requested the price, value of type Double. | |
PosOrOrder | If 1 it means the position was closed automatically,2 means the order transferred to BackOffice side and its pending, |
OrderID | Number of order when thePosOrOrder = 2 , value of type Integer. |
BuySell | Operation type,value of type OperationTypeEnum. |
Lots | Amount of lots, the value of type Double. |
Symbol | Trading symbol object, the value of type |
ServerTime | The server time when the operation proceeds, the value of type String. |
TransTage | The same string that was sent throughNewMarketOrdermethod. |
Remark
Use this event know the result for the new order