Decimal numbers dismiss
-
Hi all;
Can anyone help me ;
In the formula window ,I devide my balance to 100.000 for finding starting lot in robot..But the value is something like too much decimals. (like 0.17256 for example) how can i use the 2 number decimals here like 0.17 and dismiss the others .I couldnt do that can anyone help me?
THX all.. -
@adentist In a custom mql block write: Value = NormalizeDouble(Value, 2); where "Value" is a double variable declared in the variables section, and "2" is the number of decimals you want to keep.
-
thank you so much.So doesnt in fx dreema a block that does this???
-
@adentist As far as I know, no... but use this, as it works. In the formula block, put the result in a variable,
let's say Value (or Distance in the case of this screenshot... previously declared in the variables section), then connect it to an mql block like this in which you write this.. with your variable of course. 
And please push reply if you reply, so people can get notified when you respond
-
Thank you so much..
-
@adentist You can also manually type that same formula (from the equal sign rightwards) into the 'adjust' tab on any fxDreema block.