MT5APIOrderModifyAsync Method
|
OrderModifyAsync
Namespace: mtapi.mt5Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax public void OrderModifyAsync(
int requestId,
long ticket,
string symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
long expertID = 0,
double stoplimit = 0,
Expiration expiration = null,
string comment = null
)
Public Sub OrderModifyAsync (
requestId As Integer,
ticket As Long,
symbol As String,
lots As Double,
price As Double,
type As OrderType,
sl As Double,
tp As Double,
Optional expertID As Long = 0,
Optional stoplimit As Double = 0,
Optional expiration As Expiration = Nothing,
Optional comment As String = Nothing
)
public:
void OrderModifyAsync(
int requestId,
long long ticket,
String^ symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
long long expertID = 0,
double stoplimit = 0,
Expiration^ expiration = nullptr,
String^ comment = nullptr
)
member OrderModifyAsync :
requestId : int *
ticket : int64 *
symbol : string *
lots : float *
price : float *
type : OrderType *
sl : float *
tp : float *
?expertID : int64 *
?stoplimit : float *
?expiration : Expiration *
?comment : string
(* Defaults:
let _expertID = defaultArg expertID 0
let _stoplimit = defaultArg stoplimit 0
let _expiration = defaultArg expiration null
let _comment = defaultArg comment null
*)
-> unit
Parameters
- requestId Int32
- Request ID to identify order in OrderProgress before Ticket assigned
- ticket Int64
- Ticket mnumber
- symbol String
- Symbol name
- lots Double
- How many lots
- price Double
- Price
- type OrderType
- Order type
- sl Double
- Stop loss
- tp Double
- Take profit
- expertID Int64 (Optional)
- Expert id
- stoplimit Double (Optional)
- StopLimit price
- expiration Expiration (Optional)
-
- comment String (Optional)
- Comment
See Also