Syntax
Public Overrides Function CloseMarketOrder(ByVal Ticket As String ,ByVal Amount As Double,Optional ByVal AccountID As String) As VertexFXBridgeAPI.TransResult
This function should close market orders with the LP, this will return an object of typeTransResultthat represents a fail or success result.
Parameters
Key | Description |
Ticket | Ticket ID of type string |
Amount | Amount value that will be closed |
AccountID | Optional value for account ID |
Sample
Public Sub LPMarketOrderAccepted (ByVal LP As VertexFXBridgeAPI.VertexFXLP, ByVal LPOrderID As String, ByVal CoveredPrice As Double, ByVal LPTicketID As String) Dim Result As VertexFXBridgeAPI.TransResult Result=LP.GetLP ("Description").CloseMarketOrder ("753210", 1,"") End Sub
See Also