Partial closure on MT5 doesn't round lot size to a valid value
-
I was just adding the scale out to my project which is done by partial closure. However, fxdreema doesn't round to a valid lot size and I see the following error in the log

Here is the corresponding block.

-
@trader-philipps Hi. can you share your project?
i see you have a message for retrying in 5 s maybe your broker have problem with your EA -
I'm afraid you will need to round the lot size value before closing the trade partially. I remember a problem like this a long time ago and I don't remember there was a solution for it. But my memory is not as good as before, obviously.

-
@l-andorrà Yeah, looks like. Thought it was so easy to just use that block. I think in MT4 it works fine.
-
@xfire said in Partial closure on MT5 doesn't round lot size to a valid value:
@trader-philipps Hi. can you share your project?
i see you have a message for retrying in 5 s maybe your broker have problem with your EASorry, can't share it here. But it is easy to reproduce. Choose an uneven lot size and partly close 50%.
-
@trader-philipps good luck rich man
