Download MetaTrader 5

Exit process

To add comments, please log in or register
kemiks
7
kemiks  
hello team, how can i exit from a trade when is going against my speculation. i dont mean using stop loss. i seek any other method of leaving the market.
MhFx7
1384
MhFx7  

Try this Function:

bool  OrderClose(
   int        ticket,      // ticket
   double     lots,        // volume
   double     price,       // close price
   int        slippage,    // slippage
   color      arrow_color  // color
   );
https://docs.mql4.com/trading/orderclose
OrderClose - Trade Functions - MQL4 Reference
OrderClose - Trade Functions - MQL4 Reference
  • docs.mql4.com
OrderClose - Trade Functions - MQL4 Reference
To add comments, please log in or register