OrderClientOrderClose Method
|
Close opened order.
Namespace:
TradingAPI.MT4Server
Assembly:
MT4ServerApi (in MT4ServerApi.dll) Version: 4.6.1.8
Syntax public Order OrderClose(
string symbol,
int ticket,
double volume,
double price,
int slippage
)
Public Function OrderClose (
symbol As String,
ticket As Integer,
volume As Double,
price As Double,
slippage As Integer
) As Order
public:
Order^ OrderClose(
String^ symbol,
int ticket,
double volume,
double price,
int slippage
)
member OrderClose :
symbol : string *
ticket : int *
volume : float *
price : float *
slippage : int -> Order
Parameters
- symbol
- Type: SystemString
Symbol for trading. - ticket
- Type: SystemInt32
Unique number of the order ticket. - volume
- Type: SystemDouble
Number of lots. - price
- Type: SystemDouble
Preferred closing price. - slippage
- Type: SystemInt32
Value of the maximum price slippage in points.
Return Value
Type:
OrderClosed order.
Exceptions See Also