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)
Syntaxpublic Order OrderModify(
Op type,
int ticket,
double price,
double stoploss,
double takeprofit,
DateTime expiration
)
Public Function OrderModify (
type As Op,
ticket As Integer,
price As Double,
stoploss As Double,
takeprofit As Double,
expiration As DateTime
) As Order
public:
Order^ OrderModify(
Op type,
int ticket,
double price,
double stoploss,
double takeprofit,
DateTime expiration
)
member OrderModify :
type : Op *
ticket : int *
price : float *
stoploss : float *
takeprofit : float *
expiration : DateTime -> Order
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:
OrderModified order.
Exceptions
See Also