OPEN-SOURCE SCRIPT
Round Number Grid

Round Number Grid is a visual price reference tool that draws psychological round-number levels around the current market price.
The purpose of this script is to help traders quickly see nearby round-number levels such as 50, 100, 150, 200, 250, 300, 500, or other clean price steps depending on the symbol and its volatility.
This is a visual tool only. It does not generate buy or sell signals, does not predict future price movement, and does not claim that round numbers will act as support or resistance.
How it works
The script can calculate the grid step in two ways:
- Auto from ATR: the script uses recent volatility to estimate a suitable distance between levels, then converts that distance into a clean round-number step.
- Manual: the user can manually choose the distance between grid levels.
In Auto mode, the script converts the ATR-based distance into a clean step such as:
- 1
- 2.5
- 5
- 10
- 25
- 50
- 100
This helps the grid adapt to different symbols and price ranges.
What the script shows
- Round-number levels above and below current price
- The nearest round-number level above price
- The nearest round-number level below price
- Optional major levels every selected number of steps
- Optional labels for visible levels
- A compact state label showing:
- Current grid step
- Nearest round level above
- Nearest round level below
- Percentage distance to the nearest levels
Visual features
The nearest level above price can be highlighted with a separate color and width.
The nearest level below price can also be highlighted separately.
Users can control:
- Number of levels shown above and below price
- Step mode: Auto or Manual
- Auto step multiplier from ATR
- Manual step size
- Major level frequency
- Line colors
- Line width
- Line style
- Label size
- Label visibility
- State label visibility
- Right-side line extension
Right extension
The script includes a right-extension setting so users can extend the grid lines farther to the right.
Users can choose between:
- Manual bars: extend levels by a selected number of bars
- Infinite right: extend the grid lines continuously to the right side of the chart
This makes the grid easier to read when the user wants more space between price, labels, and the right edge of the chart.
Alerts
The script includes alert conditions for:
- Round level crossed
- Nearest upper round level crossed
- Nearest lower round level crossed
These alerts are descriptive price-reference events only. They are not buy or sell signals.
Important note
Round numbers are psychological reference levels. They may be watched by market participants, but they are not guaranteed support or resistance levels.
A reaction near a round number does not guarantee a reversal, continuation, breakout, or rejection.
This indicator is intended for visual analysis, education, and chart context. It should be used together with broader market structure, trend, volume, support and resistance, and risk management.
Repainting / behavior note
This script does not use pivot confirmation, future-looking calculations, or predictive signals.
However, the visible grid is centered around the current price area. When price moves significantly, the displayed grid can recenter around the new price area. This is normal behavior for a visual round-number grid and should not be interpreted as a signal change.
The script is not a strategy, not financial advice, and not a standalone trading system.
The purpose of this script is to help traders quickly see nearby round-number levels such as 50, 100, 150, 200, 250, 300, 500, or other clean price steps depending on the symbol and its volatility.
This is a visual tool only. It does not generate buy or sell signals, does not predict future price movement, and does not claim that round numbers will act as support or resistance.
How it works
The script can calculate the grid step in two ways:
- Auto from ATR: the script uses recent volatility to estimate a suitable distance between levels, then converts that distance into a clean round-number step.
- Manual: the user can manually choose the distance between grid levels.
In Auto mode, the script converts the ATR-based distance into a clean step such as:
- 1
- 2.5
- 5
- 10
- 25
- 50
- 100
This helps the grid adapt to different symbols and price ranges.
What the script shows
- Round-number levels above and below current price
- The nearest round-number level above price
- The nearest round-number level below price
- Optional major levels every selected number of steps
- Optional labels for visible levels
- A compact state label showing:
- Current grid step
- Nearest round level above
- Nearest round level below
- Percentage distance to the nearest levels
Visual features
The nearest level above price can be highlighted with a separate color and width.
The nearest level below price can also be highlighted separately.
Users can control:
- Number of levels shown above and below price
- Step mode: Auto or Manual
- Auto step multiplier from ATR
- Manual step size
- Major level frequency
- Line colors
- Line width
- Line style
- Label size
- Label visibility
- State label visibility
- Right-side line extension
Right extension
The script includes a right-extension setting so users can extend the grid lines farther to the right.
Users can choose between:
- Manual bars: extend levels by a selected number of bars
- Infinite right: extend the grid lines continuously to the right side of the chart
This makes the grid easier to read when the user wants more space between price, labels, and the right edge of the chart.
Alerts
The script includes alert conditions for:
- Round level crossed
- Nearest upper round level crossed
- Nearest lower round level crossed
These alerts are descriptive price-reference events only. They are not buy or sell signals.
Important note
Round numbers are psychological reference levels. They may be watched by market participants, but they are not guaranteed support or resistance levels.
A reaction near a round number does not guarantee a reversal, continuation, breakout, or rejection.
This indicator is intended for visual analysis, education, and chart context. It should be used together with broader market structure, trend, volume, support and resistance, and risk management.
Repainting / behavior note
This script does not use pivot confirmation, future-looking calculations, or predictive signals.
However, the visible grid is centered around the current price area. When price moves significantly, the displayed grid can recenter around the new price area. This is normal behavior for a visual round-number grid and should not be interpreted as a signal change.
The script is not a strategy, not financial advice, and not a standalone trading system.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.