OPEN-SOURCE SCRIPT

20-Candle ATR in Pips (5m only)

250
This custom indicator displays the Average True Range (ATR) over the last 20 candles on a 5-minute chart, specifically designed for pairs where 1 pip = 0.01.

Key features:
📐 Calculates a simple moving average of the true range over the last 20 five-minute candles.
📋 Outputs the ATR value in a clean table with a green background and white text.
⚠️ Designed exclusively for the 5-minute timeframe – prompts you to switch if you’re on a different one.
📏 Values are shown in pips (e.g., “ATR (20 candles): 9.83 pips”).


This tool is ideal for short-term volatility tracking, scalping strategies, and identifying market conditions where price is expanding or contracting.

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.