OPEN-SOURCE SCRIPT
OHLC Range Meter

OHLC Range Meter
An indicator that reads the Open / High / Low / Close of every candle and measures each candle's "range" from its High − Low. It's built to show at a glance which candles are moving hard and which are quiet, making it useful for reading momentum and volatility bar by bar — especially for gold (XAUUSD) trading.
Key features
Displays the range (H−L) as a label on every candle. Choose from three units — Points, Price (dollars), or Ticks — to match your own counting style and your broker's price precision. You can optionally add the body range |Close − Open| and the full OHLC values inside each label.
Labels are clearly separated between up and down candles (default: green candles above, red candles below), so direction and trend shifts are instantly readable. The position for each color is fully adjustable.
A real-time summary table in the corner shows the latest candle's OHLC and range. Position it in any of the four corners, adjust font size for both labels and table across five levels, and customize colors and label frequency.
About the units
Points mode divides (High − Low) by your chosen point size. For gold, 0.01 is recommended — a candle moving $2.30 will read as 230, matching how most gold traders count. If your broker quotes prices with three decimals, switch to 0.001, or use Ticks mode, which follows the symbol's actual mintick automatically.
How to use
Open the Pine Editor on TradingView, paste the code, and Add to chart. Adjust units and styling under Settings. Works on any symbol and any timeframe.
Note: TradingView limits labels to the most recent 500.
An indicator that reads the Open / High / Low / Close of every candle and measures each candle's "range" from its High − Low. It's built to show at a glance which candles are moving hard and which are quiet, making it useful for reading momentum and volatility bar by bar — especially for gold (XAUUSD) trading.
Key features
Displays the range (H−L) as a label on every candle. Choose from three units — Points, Price (dollars), or Ticks — to match your own counting style and your broker's price precision. You can optionally add the body range |Close − Open| and the full OHLC values inside each label.
Labels are clearly separated between up and down candles (default: green candles above, red candles below), so direction and trend shifts are instantly readable. The position for each color is fully adjustable.
A real-time summary table in the corner shows the latest candle's OHLC and range. Position it in any of the four corners, adjust font size for both labels and table across five levels, and customize colors and label frequency.
About the units
Points mode divides (High − Low) by your chosen point size. For gold, 0.01 is recommended — a candle moving $2.30 will read as 230, matching how most gold traders count. If your broker quotes prices with three decimals, switch to 0.001, or use Ticks mode, which follows the symbol's actual mintick automatically.
How to use
Open the Pine Editor on TradingView, paste the code, and Add to chart. Adjust units and styling under Settings. Works on any symbol and any timeframe.
Note: TradingView limits labels to the most recent 500.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。