Click or drag to resize

OrderClientOrderModifyAsync Method

Modification of characteristics for the previously opened position or pending 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 OrderModifyAsync(
	Op type,
	int ticket,
	double price,
	double stoploss,
	double takeprofit,
	DateTime expiration
)

Parameters

type
Type: TradingAPI.MT4ServerOp
Operation type.
ticket
Type: SystemInt32
Unique number of the order ticket.
price
Type: SystemDouble
Price value.
stoploss
Type: SystemDouble
Stop loss level.
takeprofit
Type: SystemDouble
Take profit level.
expiration
Type: SystemDateTime
Expiration time.

Return Value

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