Is it possible to round up to the nearest 5 number?
I was wondering if it is possible to round up the stop loss or take profit to the nearest number that can be divided by 5?
- Not able to replace accurate rates
- rounding of the nearest tick MQL5!
- Need Help with Error #130 invalid stoploss
Yep, did you mean 5 though ? Plenty of pair prices are less than 5.0
Probably mean 5 pips. See round up & down - MQL4 forum