OPEN-SOURCE SCRIPT
Simple ATR Volatility Context v1.0

This indicator provides a simple visual view of market volatility using ATR expressed as a percentage of price. It is designed to help identify when a market transitions from low-activity (compression) to higher-activity (expansion).
What it does
Calculates ATR as a percentage of price
Highlights the chart when volatility exceeds a user-defined threshold
Helps distinguish between quiet markets and trade-worthy conditions
How to use it
Green background indicates elevated volatility
Neutral / muted background indicates low volatility
Use alongside your own trend, structure, or entry tools
What this is not
Not a buy or sell signal
Not predictive
No performance claims
This tool is intended for market context and awareness, not standalone trading decisions.
What it does
Calculates ATR as a percentage of price
Highlights the chart when volatility exceeds a user-defined threshold
Helps distinguish between quiet markets and trade-worthy conditions
How to use it
Green background indicates elevated volatility
Neutral / muted background indicates low volatility
Use alongside your own trend, structure, or entry tools
What this is not
Not a buy or sell signal
Not predictive
No performance claims
This tool is intended for market context and awareness, not standalone trading decisions.
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.