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
)
Public Function OrderClose (
login As Integer,
ticket As Integer,
Optional price As Double = 0,
Optional slippage As Integer = 0,
Optional lots As Double = 0,
Optional closeby As Integer = 0
) As TradeRecord
public:
TradeRecord^ OrderClose(
int login,
int ticket,
double price = 0,
int slippage = 0,
double lots = 0,
int closeby = 0
)
member OrderClose :
login : int *
ticket : int *
?price : float *
?slippage : int *
?lots : float *
?closeby : int
(* Defaults:
let _price = defaultArg price 0
let _slippage = defaultArg slippage 0
let _lots = defaultArg lots 0
let _closeby = defaultArg closeby 0
*)
-> TradeRecord
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:
TradeRecordSee Also