OPEN-SOURCE SCRIPT

Range Panel (Current + Lookback)

109
Range Panel (Current + Lookback)
What it does:
Displays a fixed-position panel showing the current bar’s range (1×, 1.5×, 2×) and a lookback bar’s range (1×, 1.5×, 2×) for quick volatility and target sizing reference. The panel stays visible on any timeframe and updates live.

Why it’s useful:
Quickly compare the size of the current candle to a past candle without measuring manually. Perfect for stop/target planning and assessing volatility shifts.

Features

Current Bar Range — 1×, 1.5×, and 2× multipliers in instrument points.

Lookback Bar Range — 1×, 1.5×, and 2× multipliers from N bars ago.

Lookback control — set N to any bar back in history.

Static panel — stays in the same screen corner regardless of price or time.

Panel position toggle — Top Left / Top Right / Bottom Left / Bottom Right.

Customizable background and text colors.

Optional inputs in status line.

Inputs

Lookback (bars) — how many bars back to fetch the comparison range.

Background — panel background color.

Text — text color.

Panel Position — where to place the panel on the chart.

Inputs in status line — toggle to show settings in the chart’s status bar.

Notes

Range is measured as (High – Low) of the bar.

Values are in instrument points (for MNQ: 0.25 point = 1 tick).

Works on any symbol and timeframe.

Do you want me to also add tick and $ equivalents for MNQ into this description so it’s clearer for futures traders?








You said:
add font size


ChatGPT said:
Got it — here’s the updated public description with the new font size control added to the feature list and inputs section:

Range Panel (Current + Lookback)
What it does:
Displays a fixed-position panel showing the current bar’s range (1×, 1.5×, 2×) and a lookback bar’s range (1×, 1.5×, 2×) for quick volatility and target sizing reference. The panel stays visible on any timeframe and updates live.

Why it’s useful:
Quickly compare the size of the current candle to a past candle without measuring manually. Perfect for stop/target planning and assessing volatility shifts.

Features

Current Bar Range — 1×, 1.5×, and 2× multipliers in instrument points.

Lookback Bar Range — 1×, 1.5×, and 2× multipliers from N bars ago.

Lookback control — set N to any bar back in history.

Font size control — adjust panel text size to match your chart style.

Static panel — stays in the same screen corner regardless of price or time.

Panel position toggle — Top Left / Top Right / Bottom Left / Bottom Right.

Customizable background and text colors.

Optional inputs in status line.

Inputs

Lookback (bars) — how many bars back to fetch the comparison range.

Font size — sets panel text size (small, normal, large).

Background — panel background color.

Text — text color.

Panel Position — where to place the panel on the chart.

Inputs in status line — toggle to show settings in the chart’s status bar.

Notes

Range is measured as (High – Low) of the bar.

Values are in instrument points (for MNQ: 0.25 point = 1 tick).

Works on any symbol and timeframe.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.