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