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?
 
Yep, did you mean 5 though ? Plenty of pair prices are less than 5.0
 

Hi Raptor aka the man around here!

The stop loss must equal a number divisable by 5.. Any ideas?


double SL = NormalizeDouble(iBands(NULL, NULL,Periods,Deviations,0,PRICE_CLOSE,MODE_LOWER,0), NDigits) -Buffer*PipValue*Point;
    if (iBands(NULL, NULL,20,2,0,PRICE_CLOSE,MODE_LOWER,0) == 0) SL = 0;
 
Probably mean 5 pips. See round up & down - MQL4 forum
Reason: