Click or drag to resize

OrderClientOrderCloseBy Method

Close of pair of opposite open orders.

Namespace:  TradingAPI.MT4Server
Assembly:  MT4ServerApi (in MT4ServerApi.dll) Version: 4.6.1.8
Syntax
public void OrderCloseBy(
	string symbol,
	int ticket1,
	int ticket2
)

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.
Exceptions
ExceptionCondition
TradeContextBusyExceptionAll trade connections are busy.
ServerExceptionCheck exception message for details.
TradeTimeoutExceptionNo reply from server in TradeTimeout milliseconds.
See Also