Click or drag to resize

OrderClientOrderDeleteAsync Method

Delete pending order 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 OrderDeleteAsync(
	int ticket,
	Op type,
	string symbol,
	double volume,
	double price
)

Parameters

ticket
Type: SystemInt32
Unique number of the order ticket.
type
Type: TradingAPI.MT4ServerOp
Operation type.
symbol
Type: SystemString
Symbol for trading.
volume
Type: SystemDouble
Number of lots.
price
Type: SystemDouble
Preferred deleting price.

Return Value

Type: Int32
Temporary ID to identify order until it get a ticket number.
Exceptions
ExceptionCondition
TradeContextBusyExceptionAll trade connections are busy.
See Also