|
CloseAll
It performs partial of full position closing.
virtual bool CloseAll(
|
Parameters
lot
[in] Number of lots to reduce the position.
Return Value
true - trade operation has been executed, otherwise - false.
Note
In the "netting" mode, a position is closed using the CExpertTrade::Buy or CExpertTrade::Sell methods. In the "hedging" mode, the CTrade::PositionClose method is used, which can also be used on accounts with the netting mode. The DeleteOrders() method is used to delete orders.
Implementation
//+------------------------------------------------------------------+ |