MT5.ClosePosition.Rd
Send a request to close positions in MT5.
MT5.ClosePosition(iTickers)
iTickers | int(); vector of tickets positions to close. |
---|
Returns TRUE
if position was successful closed.
For iTickers users can use MT5.ShowPositions()
to obtain it.
MT5.SingleOrder()
, MT5.MultipleOrders()
, MT5.ShowPositions()
, MT5.ShowOrders()
, MT5.ModifyOrder()
, MT5.DeleteOrder()
, MT5.ModifyPosition()
if (FALSE) { # Close position 732176419 MT5.ClosePosition(732176419) }