Decrease numbers after the comma to an integer 0.00221010
-
I tried to reduce the number by several functions, but it did not succeed. I tried to * the number by ten thousand, but it did not succeed
I want to subtract the value of a recent buy from a recent sell
if R3 =100 close all trades .
R3 = BOPEN-SOPEN ---- BLOCK NUMBER 27
I USED
= NormalizeDouble($, 2)
AND
=DoubleToString(R3,2)They all did not work, is there a specific suggestion
-
show your code please and also the variable type!
-
@bk7 https://fxdreema.com/shared/iFlo6o5M
Sorry, I forgot to attach the link -
@khalids222 Why do you need to reduce the number of digits of an integer number? Integer numbers DO NOT have decimal positions by definition.
-
@l-andorrà It is not an integer, my problem is that it is not an integer?
I do not know how you got an integer number?

-
-
@khalids222 hey< use that "custom mql code" i shared above . for you it will be R3=NormalizeDouble(R3,2);
-
@raja0033 Thank you very much - useful information.