OPEN-SOURCE SCRIPT
Round Numbers ATR Plotter v3

Description
The Round Numbers ATR Plotter v3 is an advanced tool designed to visualise dynamic price levels based on market volatility.
Instead of relying on fixed-point or pip-based intervals, this indicator builds its structure using the Average True Range (ATR), allowing levels to automatically adapt to changing market conditions across all asset classes — Forex, indices, crypto, and commodities.
Each level acts as a volatility-adjusted psychological zone, where price is statistically more likely to react, consolidate, or transition.
How it works
The distance between levels is calculated as:
Step = ATR (Daily or Weekly) × Multiplier
This step is then optionally rounded to clean round numbers, producing levels that are both:
- mathematically consistent with volatility
- visually intuitive and easy to interpret
Key Features
🔹 ATR-Based Dynamic Levels
- Levels automatically adjust to volatility
- No need to define points, pips, or instrument-specific scaling
- Works seamlessly across all markets
🔹 Smart Step Rounding
- Optional alignment to clean round numbers (e.g. 314 → 300)
- Improves readability and psychological relevance
🔹 Gravitation Zones
- Each level is surrounded by a configurable gravitational range
- Defined as a percentage of the step (default: 25%)
- Highlights areas where price tends to cluster before moving
🔹 Optional Zone Fill
- Visual shading between gravitation lines
- Helps identify equilibrium zones at a glance
🔹 Adaptive to Any Market
- No need to adjust pip size (including JPY pairs)
- No manual tuning per asset
🔹 Step Label on Chart
- Displays the current ATR-based step directly on the chart
- Positioned near the central level for quick reference
Inputs Overview
- Number of Levels (per side): Number of levels plotted above and below price
- ATR Timeframe: Choose between Daily or Weekly ATR
- ATR Length: Period used for ATR calculation
- ATR Multiplier: Controls spacing between levels
- Align levels to round numbers: Enables rounding of the step to clean values
- Gravitation Zones (%): Defines the size of the zone around each level
- Gravitation Lines Style: Colour, width, and style customisation
- Zone Fill (optional): Enable/disable shading between gravitation lines
Improvements vs Previous Versions
✅ Replaced fixed step (points/pips) with ATR-based dynamic spacing
✅ Eliminated the need for pip size configuration (including JPY pairs)
✅ Added automatic adaptation to volatility regimes
✅ Introduced smart step rounding for cleaner levels
✅ Added gravitation zones around each level
✅ Added optional zone fill visualisation
✅ Improved usability across all instruments without manual adjustments
✅ Added on-chart ATR step display
The Round Numbers ATR Plotter v3 is an advanced tool designed to visualise dynamic price levels based on market volatility.
Instead of relying on fixed-point or pip-based intervals, this indicator builds its structure using the Average True Range (ATR), allowing levels to automatically adapt to changing market conditions across all asset classes — Forex, indices, crypto, and commodities.
Each level acts as a volatility-adjusted psychological zone, where price is statistically more likely to react, consolidate, or transition.
How it works
The distance between levels is calculated as:
Step = ATR (Daily or Weekly) × Multiplier
This step is then optionally rounded to clean round numbers, producing levels that are both:
- mathematically consistent with volatility
- visually intuitive and easy to interpret
Key Features
🔹 ATR-Based Dynamic Levels
- Levels automatically adjust to volatility
- No need to define points, pips, or instrument-specific scaling
- Works seamlessly across all markets
🔹 Smart Step Rounding
- Optional alignment to clean round numbers (e.g. 314 → 300)
- Improves readability and psychological relevance
🔹 Gravitation Zones
- Each level is surrounded by a configurable gravitational range
- Defined as a percentage of the step (default: 25%)
- Highlights areas where price tends to cluster before moving
🔹 Optional Zone Fill
- Visual shading between gravitation lines
- Helps identify equilibrium zones at a glance
🔹 Adaptive to Any Market
- No need to adjust pip size (including JPY pairs)
- No manual tuning per asset
🔹 Step Label on Chart
- Displays the current ATR-based step directly on the chart
- Positioned near the central level for quick reference
Inputs Overview
- Number of Levels (per side): Number of levels plotted above and below price
- ATR Timeframe: Choose between Daily or Weekly ATR
- ATR Length: Period used for ATR calculation
- ATR Multiplier: Controls spacing between levels
- Align levels to round numbers: Enables rounding of the step to clean values
- Gravitation Zones (%): Defines the size of the zone around each level
- Gravitation Lines Style: Colour, width, and style customisation
- Zone Fill (optional): Enable/disable shading between gravitation lines
Improvements vs Previous Versions
✅ Replaced fixed step (points/pips) with ATR-based dynamic spacing
✅ Eliminated the need for pip size configuration (including JPY pairs)
✅ Added automatic adaptation to volatility regimes
✅ Introduced smart step rounding for cleaner levels
✅ Added gravitation zones around each level
✅ Added optional zone fill visualisation
✅ Improved usability across all instruments without manual adjustments
✅ Added on-chart ATR step display
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。