HomePine Script Snippets › Tick Value Helper

Pine Script Tick Value Helper (MES / MNQ)

Reads syminfo.mintick and syminfo.pointvalue to print the exact dollar-per-tick for whatever symbol is on the chart.

//@version=6
indicator("Tick Value Helper", overlay=true)

// ── Inputs ──────────────────────────────────────────────
manualTickValue = input.float(0.0, "Manual Tick Value ($)", step=0.05, minval=0,
     tooltip="0 = auto-detect from the symbol. Set a value to override.")

// ── Auto-detect from symbol info ─────────────────────────
autoTickValue = syminfo.mintick * syminfo.pointvalue
tickValue     = manualTickValue > 0 ? manualTickValue : autoTickValue

// ── Readout table ────────────────────────────────────────
var table t = table.new(position.top_right, 2, 4, bgcolor=color.new(color.black, 20), border_width=1)
if barstate.islast
    table.cell(t, 0, 0, "Symbol", text_color=color.white)
    table.cell(t, 1, 0, syminfo.ticker, text_color=color.white)
    table.cell(t, 0, 1, "Tick size", text_color=color.white)
    table.cell(t, 1, 1, str.tostring(syminfo.mintick), text_color=color.white)
    table.cell(t, 0, 2, "Point value", text_color=color.white)
    table.cell(t, 1, 2, "$" + str.tostring(syminfo.pointvalue), text_color=color.white)
    table.cell(t, 0, 3, "Tick value", text_color=color.white)
    table.cell(t, 1, 3, "$" + str.tostring(tickValue), text_color=color.white)

Settings

How to use

Frequently Asked Questions

What is the tick value of MNQ?

$0.50. MNQ moves in 0.25-point ticks with a $2 point value, so each tick is worth 50 cents per contract. MES is $1.25 per tick, NQ is $5.00, and ES is $12.50.

How do I get dollar value per tick in Pine Script?

Multiply syminfo.mintick by syminfo.pointvalue. On MNQ that is 0.25 x 2 = $0.50; on ES it is 0.25 x 50 = $12.50. Because both values come from the symbol, the same code returns the right number on any futures contract without hardcoding.

What is syminfo.pointvalue?

The dollar value of one full point of price movement for one contract — 2 for MNQ, 5 for MES, 20 for NQ, 50 for ES. Combined with syminfo.mintick (the smallest price increment) it gives tick value, which is what stop distances and P&L math actually need.

Related

Want a complete eval-ready strategy with the dollar math handled?

This snippet is a building block. Our paid scripts are complete strategies — entries, tick-accurate sizing, kill switch, session filter, and EOD flatten tested on 3 years of MES/NQ data. Instant delivery from $50.

View Plans — From $50