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

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