Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Thank you very much guys for your help. I solved it with this new point of view!
@afgmarkets this bunch of code returns the minimum volume: SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN) https://www.mql5.com/en/docs/marketinformation/symbolinfodouble https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_double However the partial closing bug is not just about minimum volume, but also lack of rounding (or flooring) the number. You can do the % calculation manually and then just put the code in Custom input field instead of the percent field.
This code calculates 33% of your position and then floors the value to nearest hundredth: MathFloor(PositionGetDouble(POSITION_VOLUME)*0.33 *100)/100
M
Hi,
I have the same problem and is not working with just close+open MT5. Anybody found any other solution?
Thank you,
J
Take a look at this post
https://fxdreema.com/forum/topic/4867/select-object-by-name-several-objects