MT5APIOrderModifyAsync Method
|
OrderModifyAsync
Namespace:
mtapi.mt5
Assembly:
mt5api (in mt5api.dll) Version: 4.6.1.4
Syntaxpublic void OrderModifyAsync(
int requestId,
long ticket,
string symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
ulong deviation,
string comment,
long expertID,
FillPolicy fillPolicy = FillPolicy.FillOrKill,
double stoplimit = 0
)
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,
deviation As ULong,
comment As String,
expertID As Long,
Optional fillPolicy As FillPolicy = FillPolicy.FillOrKill,
Optional stoplimit As Double = 0
)
public:
void OrderModifyAsync(
int requestId,
long long ticket,
String^ symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
unsigned long long deviation,
String^ comment,
long long expertID,
FillPolicy fillPolicy = FillPolicy::FillOrKill,
double stoplimit = 0
)
member OrderModifyAsync :
requestId : int *
ticket : int64 *
symbol : string *
lots : float *
price : float *
type : OrderType *
sl : float *
tp : float *
deviation : uint64 *
comment : string *
expertID : int64 *
?fillPolicy : FillPolicy *
?stoplimit : float
(* Defaults:
let _fillPolicy = defaultArg fillPolicy FillPolicy.FillOrKill
let _stoplimit = defaultArg stoplimit 0
*)
-> unit
Parameters
- requestId
- Type: SystemInt32
Request ID to identify order in OrderProgress before Ticket assigned - ticket
- Type: SystemInt64
Ticket mnumber - symbol
- Type: SystemString
Symbol name - lots
- Type: SystemDouble
How many lots - price
- Type: SystemDouble
Price - type
- Type: mtapi.mt5OrderType
Order type - sl
- Type: SystemDouble
Stop loss - tp
- Type: SystemDouble
Take profit - deviation
- Type: SystemUInt64
Maximum deviation in points - comment
- Type: SystemString
Comment - expertID
- Type: SystemInt64
Expert id - fillPolicy (Optional)
- Type: mtapi.mt5FillPolicy
Fill policy - stoplimit (Optional)
- Type: SystemDouble
StopLimit price
See Also