Hello everyone!
I need help, in the attached code I use it to calculate the necessary lotage, the problem is that the resulting value comes out with a very long number and I have not been able to cut it to only 4 characters, that is "0.07", I have tried it with a balance of €2048 and the result is always 0.07000000000001, can you help me?
Have you tried NormalizeDouble() instead of DoubleToString() ?

- www.mql5.com
Hello everyone!
I need help, in the attached code I use it to calculate the necessary lotage, the problem is that the resulting value comes out with a very long number and I have not been able to cut it to only 4 characters, that is "0.07", I have tried it with a balance of €2048 and the result is always 0.07000000000001, can you help me?