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
)
Public Function OrderModifyAsync (
type As Op,
ticket As Integer,
price As Double,
stoploss As Double,
takeprofit As Double,
expiration As DateTime
) As Integer
public:
int OrderModifyAsync(
Op type,
int ticket,
double price,
double stoploss,
double takeprofit,
DateTime expiration
)
member OrderModifyAsync :
type : Op *
ticket : int *
price : float *
stoploss : float *
takeprofit : float *
expiration : DateTime -> int
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:
Int32Temporary ID to identify order until it get a ticket number.
Exceptions See Also