Find the nearest round number, does anyone know how to do it?
-
I need to find a way for my EA to always locate the round number closest to the current price.
For example, if I am at EURUSD 1.08014 then the closest round number is 1.08000
I also need to know how to search for this by range, for example:Round number closest to 500 points
Round number closest to 1000 points.Does anyone have any ideas?

-
