In pine script there is a function round(x). It is very simple and allows you to round numbers only to the closest integer number. This is a bit irritating because I very often have to round numbers to some decimal places and not an integer.So I created 2 functions I use all the time and Rounding Numbers in PineScript Read More →