Click or drag to resize

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
)

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: TradeRecord
Exceptions
ExceptionCondition
Exception
See Also