Vladislav Krivorutsko open position? That is, for example, there was an open Long position for 10 shares - how can I reduce the position by 4 shares? Or it cannot be done in mt5?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
What's stopping you from selling four shares?
apparently, for this I need to change the account type to Netting... just found out
If it's about hedging, you have to specify a position ticket.
Here, right from the reference: "When modifying or closing a position in a hedging system, be sure to specify its ticket (MqlTradeRequest::position)".
Looking at the method
PositionClosePartial
Closes part of the position by a specified symbol or with a specified tick
Added: but this is ONLY for hedge trading accounts!