OPEN-SOURCE SCRIPT
Updated

Custom Length ATR

429
This Custom Length ATR Indicator allows traders to calculate the Average True Range (ATR) dynamically based on a selected timeframe and number of days. Unlike traditional ATR indicators that are tied to the chart’s timeframe, this script lets users choose a specific timeframe scale (e.g., Daily, Hourly, etc.), ensuring consistent volatility measurement across different trading views.
Release Notes
This Custom Length ATR Indicator allows traders to calculate the Average True Range (ATR) dynamically based on a selected timeframe and number of days. Unlike traditional ATR indicators that are tied to the chart's timeframe, this script lets users choose a specific timeframe scale (e.g., Daily, Hourly, etc.), ensuring consistent volatility measurement across different trading views.
Release Notes
Improves readability and usability
Release Notes
- Added ATR smoothing type.
Release Notes
Key Improvements:
- Unified Timeframe Selection – ATR & CCI now use a single timeScale parameter for consistency.
- Refined Table Layout – ATR & CCI values are more clearly labeled, right-aligned, and formatted for better readability.
- Improved Terminology – “ATR Length” replaces “ATR Days” for a more standardized approach.
- CCI Trend Indicator – Displays ▲ (up), ▼ (down), or ▬ (neutral) to indicate trend direction.
- Optimized Code Structure – Reduced redundancy and improved overall efficiency.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.