MT4ManagerOrderSend Method |
Send pending or market order
Namespace:
mtapi.be.MT4ManagerNetApi
Assembly:
MT4ManagerNetApi (in MT4ManagerNetApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public TradeRecord OrderSend(
int login,
string symbol,
Op type,
double lots,
double price = 0,
int slippage = 0,
double stoploss = 0,
double takeprofit = 0,
string comment = null,
DateTime expiration = default
)
Public Function OrderSend (
login As Integer,
symbol As String,
type As Op,
lots As Double,
Optional price As Double = 0,
Optional slippage As Integer = 0,
Optional stoploss As Double = 0,
Optional takeprofit As Double = 0,
Optional comment As String = Nothing,
Optional expiration As DateTime = Nothing
) As TradeRecord
public:
TradeRecord^ OrderSend(
int login,
String^ symbol,
Op type,
double lots,
double price = 0,
int slippage = 0,
double stoploss = 0,
double takeprofit = 0,
String^ comment = nullptr,
DateTime expiration = DateTime()
)
member OrderSend :
login : int *
symbol : string *
type : Op *
lots : float *
?price : float *
?slippage : int *
?stoploss : float *
?takeprofit : float *
?comment : string *
?expiration : DateTime
(* Defaults:
let _price = defaultArg price 0
let _slippage = defaultArg slippage 0
let _stoploss = defaultArg stoploss 0
let _takeprofit = defaultArg takeprofit 0
let _comment = defaultArg comment null
let _expiration = defaultArg expiration new DateTime()
*)
-> TradeRecord
Parameters
- login
- Type: SystemInt32
- symbol
- Type: SystemString
- type
- Type: mtapi.be.MT4ManagerNetOp
- lots
- Type: SystemDouble
- price (Optional)
- Type: SystemDouble
- slippage (Optional)
- Type: SystemInt32
- stoploss (Optional)
- Type: SystemDouble
- takeprofit (Optional)
- Type: SystemDouble
- comment (Optional)
- Type: SystemString
- expiration (Optional)
- Type: SystemDateTime
Return Value
Type:
TradeRecordExceptions See Also