Modify order
Namespace:
mtapi.mt5
Assembly:
mt5api (in mt5api.dll) Version: 4.6.1.4
Syntaxpublic void OrderModify(
long ticket,
string symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
ulong deviation = 0,
string comment = "",
long expertID = 0,
FillPolicy fillPolicy = FillPolicy.FillOrKill,
double stoplimit = 0
)
Public Sub OrderModify (
ticket As Long,
symbol As String,
lots As Double,
price As Double,
type As OrderType,
sl As Double,
tp As Double,
Optional deviation As ULong = 0,
Optional comment As String = "",
Optional expertID As Long = 0,
Optional fillPolicy As FillPolicy = FillPolicy.FillOrKill,
Optional stoplimit As Double = 0
)
public:
void OrderModify(
long long ticket,
String^ symbol,
double lots,
double price,
OrderType type,
double sl,
double tp,
unsigned long long deviation = 0,
String^ comment = L"",
long long expertID = 0,
FillPolicy fillPolicy = FillPolicy::FillOrKill,
double stoplimit = 0
)
member OrderModify :
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 _deviation = defaultArg deviation 0
let _comment = defaultArg comment ""
let _expertID = defaultArg expertID 0
let _fillPolicy = defaultArg fillPolicy FillPolicy.FillOrKill
let _stoplimit = defaultArg stoplimit 0
*)
-> unit
Parameters
- 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 (Optional)
- Type: SystemUInt64
Maximum deviation in points - comment (Optional)
- Type: SystemString
Comment - expertID (Optional)
- Type: SystemInt64
Expert id - fillPolicy (Optional)
- Type: mtapi.mt5FillPolicy
Fill policy - stoplimit (Optional)
- Type: SystemDouble
StopLimit price
See Also