Click or drag to resize

MT4ManagerOrderClose Method

Close market order

Namespace:  mtapi.be.MT4ManagerNetApi
Assembly:  MT4ManagerNetApi (in MT4ManagerNetApi.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public TradeRecord OrderClose(
	int login,
	int ticket,
	double price = 0,
	int slippage = 0,
	double lots = 0,
	int closeby = 0
)

Parameters

login
Type: SystemInt32
ticket
Type: SystemInt32
price (Optional)
Type: SystemDouble
slippage (Optional)
Type: SystemInt32
lots (Optional)
Type: SystemDouble
closeby (Optional)
Type: SystemInt32

Return Value

Type: TradeRecord
See Also