Skip to content
Algo Trade Analytics Docs

math.round_to_mintick() - Pine Script Function

Returns the value rounded to the symbol’s mintick, i.e. the nearest value that can be divided by syminfo.mintick, without the remainder, with ties rounding up.

math.round_to_mintick(number) → simple float
NameTypeDescription
numbersimple int/floatThe value to be rounded.

The number rounded to tick precision.

  • Note that for ‘na’ values function returns ‘na’.