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
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.