Syntax
CloseByHedge (Ticket1 As long, Ticket2 As Long, AccountID As Long, Lots As Decimal)
Description
The CloseByHedge operation is used to close a buy position with a sell position fully or partially with the same symbol if hedging is allowed.
Request Parameters
Name | Description | Required |
Ticket1 |
|
Yes |
Ticket2 |
|
Yes |
AccountId |
|
Yes |
Lots |
|
Yes |
Response Elements
Name | Description |
Result | This method returns the new Ticket ID in case of success. Otherwise, see Error Codes. Type: JSON object as String. |
See Also