Sidechair

syminfo.mintick

Browse the reference

The smallest price step the symbol can move, such as 0.01 for a stock quoted in cents.

Try it in the editor

syminfo.mintick is a simple float equal to syminfo.minmove divided by syminfo.pricescale. Every valid price is a multiple of it. A stock quoted to the cent has a mintick of 0.01, a four-digit forex pair 0.0001, and an index future often 0.25.

Use it to place orders or labels a fixed number of ticks away from a price, and to round a computed level onto the price grid with math.round_to_mintick.

Type

simple float

Remarks

  • Offsets measured in ticks, such as strategy.exit(profit = 20), use this same tick size. Multiply by syminfo.mintick when you convert a tick count into a price distance.
  • On Sidechair: the value is the instrument's tick size; when the instrument has none, it is 10 raised to minus the number of price decimals the instrument shows.

Examples

Pine ScriptStop three ticks under the barOpen in editor
//@version=6
indicator("Three ticks below the low", overlay = true)
stop = low - 3 * syminfo.mintick
plot(stop, "Stop", color.red, style = plot.style_linebr)
plot(close, "Close", color.gray)
Pine ScriptLevel snapped to the tick gridOpen in editor
//@version=6
indicator("Rounded midpoint", overlay = true)
mid = math.round_to_mintick((high + low) / 2)
plot(mid, "Mid", color.orange)

See also

Runs on Sidechair