OrderClientOrderCloseByAsync Method
|
Close of pair of opposite open orders without awiting reply from server. Use OnOrderProgress event to get result.
Namespace:
TradingAPI.MT4Server
Assembly:
MT4ServerApi (in MT4ServerApi.dll) Version: 4.6.1.8
Syntax public int OrderCloseByAsync(
string symbol,
int ticket1,
int ticket2
)
Public Function OrderCloseByAsync (
symbol As String,
ticket1 As Integer,
ticket2 As Integer
) As Integer
public:
int OrderCloseByAsync(
String^ symbol,
int ticket1,
int ticket2
)
member OrderCloseByAsync :
symbol : string *
ticket1 : int *
ticket2 : int -> int
Parameters
- symbol
- Type: SystemString
Symbol for trading. - ticket1
- Type: SystemInt32
Unique number of the first order ticket. - ticket2
- Type: SystemInt32
Unique number of the two order ticket.
Return Value
Type:
Int32Temporary ID to identify order until it get a ticket number.
Exceptions See Also