OPEN-SOURCE SCRIPT
Atr Volatility Bands

Atr Volatility Bands
Atr Volatility Bands is an ATR-based trend and volatility indicator designed to provide a clear visual view of market direction, volatility, and changing price conditions.
The indicator combines a smoothed ATR Trail with an additional ATR-based outer band and a dynamic three-color gradient. The ATR Trail adapts to market volatility and changes direction when price moves through the calculated volatility levels.
The gradient continuously changes based on the position of price within the ATR bands, creating a smooth visual transition between different market conditions. The same gradient is also applied to the candles, making trend and momentum changes easier to recognize directly on the chart.
Main Settings
• Adaptive ATR Trail
Tracks the current market direction while adapting to changing volatility.
• ATR Outer Band
Provides additional volatility context around the main ATR Trail.
• Dynamic Color Gradient
Uses a smooth purple, blue, and cyan transition based on price position within the ATR range.
• Trend Shift Detection
Helps visually identify when the current market direction changes.
• Gradient Bar Coloring
Colors candles according to the current ATR-based market condition.
• Sensitivity
Adjusts the responsiveness of the ATR calculations.
• Gradient Smoothness
Controls how smoothly the color transitions respond to price changes.
Atr Volatility Bands is designed to keep the chart clean while providing an intuitive view of trend direction, volatility, and price movement.
Use the indicator together with your preferred market structure, price action, and confirmation tools. It is not intended to be used as a standalone buy or sell signal.
Atr Volatility Bands is an ATR-based trend and volatility indicator designed to provide a clear visual view of market direction, volatility, and changing price conditions.
The indicator combines a smoothed ATR Trail with an additional ATR-based outer band and a dynamic three-color gradient. The ATR Trail adapts to market volatility and changes direction when price moves through the calculated volatility levels.
The gradient continuously changes based on the position of price within the ATR bands, creating a smooth visual transition between different market conditions. The same gradient is also applied to the candles, making trend and momentum changes easier to recognize directly on the chart.
Main Settings
• Adaptive ATR Trail
Tracks the current market direction while adapting to changing volatility.
• ATR Outer Band
Provides additional volatility context around the main ATR Trail.
• Dynamic Color Gradient
Uses a smooth purple, blue, and cyan transition based on price position within the ATR range.
• Trend Shift Detection
Helps visually identify when the current market direction changes.
• Gradient Bar Coloring
Colors candles according to the current ATR-based market condition.
• Sensitivity
Adjusts the responsiveness of the ATR calculations.
• Gradient Smoothness
Controls how smoothly the color transitions respond to price changes.
Atr Volatility Bands is designed to keep the chart clean while providing an intuitive view of trend direction, volatility, and price movement.
Use the indicator together with your preferred market structure, price action, and confirmation tools. It is not intended to be used as a standalone buy or sell signal.
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.