Syntax
Event CloseOrderResult(Result As VertexFXClientAPI.NewOrderResultEnum,AtPrice As Double,PosOrOrder As Short, OrderID As Integer,BuySell As VertexGeneral.OperationTypeEnum,Lots As Double,Symbol As VertexFXClientAPI.COSymbol, ServerTime As String,OpenTicket As Long,TransTag As String)
Description
This event is raised after calling CloseMarketOrder method with result from server.
Parameters
Part |
Description |
Result |
The response from the server,value of type VertexFXClient.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 COSymbol |
ServerTime |
The server time at closing moment , value of type String |
OpenTicket |
Ticket number of closed open position , value of type Integer |
TransTag |
The same string that was sent through CloseMarketOrder method. |
See Also
VertexFX Client API Index
|