Click or drag to resize

OrderClientOrderModify Method

Modification of characteristics for the previously opened position or pending orders.

Namespace:  TradingAPI.MT4Server
Assembly:  MT4ServerAPI (in MT4ServerAPI.dll) Version: 4.0.1170.31 (4.0.1170.31)
Syntax
public Order OrderModify(
	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: Order
Modified order.
Exceptions
ExceptionCondition
TradeContextBusyExceptionAll trade connections are busy.
TimeoutExceptionNo reply from server in TradeTimeout milliseconds.
See Also