Hi,
For your first question you can use ROUND instruction that will round your decimal number to the nearest superior value.
About finding a range of 10 days in the past, you can find it with the HIGHEST and LOWEST instructions, please have a look into the online documentation.
Finding the highest high and lowest low of the last n days is like compiling the last n candlesticks into a biggest one, so you get your range.