Click or drag to resize

OrderClientOrderCloseBy Method

Close of pair of opposite open orders.

Namespace:  TradingAPI.MT4Server
Assembly:  MT4ServerAPI (in MT4ServerAPI.dll) Version: 4.0.1170.31 (4.0.1170.31)
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.
TimeoutExceptionNo reply from server in TradeTimeout milliseconds.
See Also