Click or drag to resize

OrderClientOrderSend Method (String, Op, Double, Double)

The main function used to open a position or place a pending order.

Namespace:  TradingAPI.MT4Server
Assembly:  MT4ServerApi (in MT4ServerApi.dll) Version: 4.6.1.8
Syntax
public Order OrderSend(
	string symbol,
	Op operation,
	double volume,
	double price
)

Parameters

symbol
Type: SystemString
Symbol for trading.
operation
Type: TradingAPI.MT4ServerOp
Operation type.
volume
Type: SystemDouble
Number of lots.
price
Type: SystemDouble
Preferred price of the trade.

Return Value

Type: Order
Opened order.
Exceptions
ExceptionCondition
TradeContextBusyExceptionAll trade connections are busy.
ServerExceptionCheck exception message for details.
RequoteExceptionServer cannot execute order(instant execution) at specified price. Check exception fields for latest server price.
TradeTimeoutExceptionNo reply from server in TradeTimeout milliseconds.
See Also