OPEN-SOURCE SCRIPT
ATR Dashboard (Volatility Quantifier)

ATR Dashboard
A simple volatility dashboard that displays current ATR values in a compact table in the top-right corner of the chart.
The indicator is designed to make ATR easier to quantify at a glance, especially when developing rules around changing volatility conditions. It displays three independently configurable ATR periods so you can compare short-term, standard, and longer-term volatility.
Features
Short / Long Ratio
The Short / Long row compares the short-term ATR to the long-term ATR:
[code]
Short ATR ÷ Long ATR × 100
[/code]
This provides a quick indication of whether recent volatility is expanding or contracting relative to the longer-term baseline.
For example:
This ratio can be useful for identifying volatility expansion or contraction even before a slower ATR measurement fully reacts.
The dashboard is intended primarily as an observation and rule-development tool. For example, it can help identify conditions such as:
[code]
ATR above X → reduce position size
ATR below X → avoid low-volatility conditions
Short / Long above X% → volatility expansion
[/code]
The default 5 / 14 / 50 settings are simply a starting point and can be adjusted for different instruments, timeframes, or trading styles.
Here's an example of the data table with large text:

A simple volatility dashboard that displays current ATR values in a compact table in the top-right corner of the chart.
The indicator is designed to make ATR easier to quantify at a glance, especially when developing rules around changing volatility conditions. It displays three independently configurable ATR periods so you can compare short-term, standard, and longer-term volatility.
Features
- Short ATR – Default length: 5
- Standard ATR – Default length: 14
- Long ATR – Default length: 50
- Displays ATR in both points and ticks
- Automatically uses the instrument's minimum tick size
- Configurable table text size
- Designed to work with TradingView Bar Replay
Short / Long Ratio
The Short / Long row compares the short-term ATR to the long-term ATR:
[code]
Short ATR ÷ Long ATR × 100
[/code]
This provides a quick indication of whether recent volatility is expanding or contracting relative to the longer-term baseline.
For example:
- 70% – Recent volatility is significantly lower than the longer-term baseline
- 100% – Recent volatility is approximately equal to the baseline
- 150% – Recent volatility is about 50% higher than the baseline
- 200% – Recent volatility is roughly double the baseline
This ratio can be useful for identifying volatility expansion or contraction even before a slower ATR measurement fully reacts.
The dashboard is intended primarily as an observation and rule-development tool. For example, it can help identify conditions such as:
[code]
ATR above X → reduce position size
ATR below X → avoid low-volatility conditions
Short / Long above X% → volatility expansion
[/code]
The default 5 / 14 / 50 settings are simply a starting point and can be adjusted for different instruments, timeframes, or trading styles.
Here's an example of the data table with large text:
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.