Syntax
Public Overrides Function CloseByHedge(ByVal Ticket1 As String ,ByVal Ticket2 As String ,ByVal Amount As Double,Optional ByVal AccountID As String = "") As VertexFXBridgeAPI.TransResult
This function should close two market orders with specific amount with the LP, this will return an object of typeTransResultthat represents a fail or success result.
Parameters
Key | Description |
Ticket1 | Ticket ID of type string |
Ticket2 | Ticket ID of type string |
Amount | Amount value that will be closed |
AccountID | Optional value of Account ID |
Sample
Public sub main () Dim Result As VertexFXBridgeAPI.TransResult Result=LP.GetLP("Description") CloseByHedge("751234","786320", 1,"") End Sub
See Also