math.round_to_mintick
Rounds to the nearest multiple of syminfo.mintick.
math.round_to_mintick(x: int/float) -> float
Parameters
xint/float: A price; na gives na. When the symbol has no tick size, x comes back as it is.
Example
mid = math.round_to_mintick(hl2)