Syntax
Public Event CloseOpenPosMsg(OpenTicket As Integer, ByRef CloseTicket As Integer, ClosePrice As Double, OpenPrice As Double, vType As OperationTypeEnum, Lots As Double, SymbolID As Integer, CloseTime As String, AccountID As String, Commission As Double, Interest As Double, ProfitLoss As Double, Comment As String)
Description
This event is raised when an open position has been closed for its entire overall or partially amount.
Parameters
Parameters |
Description |
OpenTicket |
The ticket number which requested to close. Value of type is Integer |
CloseTicket |
The closed order number, the value of type is Integer |
ClosePrice |
The closing price value, as a value of type Double |
OpenPrice |
The open price, that takes the order at it, the value of type is Double |
vType |
The open ticket type as a value of type OperationTypeEnum |
Lots |
The amount of lots that closed from the open ticket, the value of type is Double |
SymbolID |
The Symbol identifier, value of type is an integer |
CloseTime |
The closing time as the value of type String |
AccountID |
The Account identifier which the closed ticket belongs to, the value of type is String. |
Commission |
Commission value for the closed position, the value of type is Double |
Interest |
The swap value as Value of type is Double |
ProfitLoss |
Profit / loss value for the closed ticket as a value of type Double |
Comment |
The ticket note as a value of type String |
See Also
VertexFX Client API Index
|