Click or drag to resize

OrderClientSafeOrderModify Method

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

Namespace:  TradingAPI.MT4Server
Assembly:  MT4ServerApi (in MT4ServerApi.dll) Version: 4.6.1.8
Syntax
public Order OrderModify(
	int ticket,
	string symbol,
	Op type,
	double volume,
	double price,
	double stoploss,
	double takeprofit,
	DateTime expiration
)

Parameters

ticket
Type: SystemInt32
Unique number of the order ticket.
symbol
Type: SystemString
type
Type: TradingAPI.MT4ServerOp
Operation type.
volume
Type: SystemDouble
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.
TradeTimeoutExceptionNo reply from server in TradeTimeout milliseconds.
See Also