Click or drag to resize

OrderClient.OrderDeleteAsync 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: System.Int32
Unique number of the order ticket.
type
Type: TradingAPI.MT4Server.Op
Operation type.
symbol
Type: System.String
Symbol for trading.
volume
Type: System.Double
Number of lots.
price
Type: System.Double
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