jeanpablojp:
Im trying to normalize my price but i need to be normalized to the higher pricer not the closest.
try this
double RoundUp(double var, double rounding) { return ceil(var/rounding)*rounding; }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Im trying to normalize my price but i need to be normalized to the higher pricer not the closest.
Example.
When i try to normalize the value: 85977.14 im getting the price: 85975, but i need to enter more safe in the operation so the right price should be 85980.
Considering this Symbol is 5 in 5 points.
Any idea how i can fix this?
Thanks.