INVITE-ONLY SCRIPT

ATR_G

97
🏷️ Title (for TradingView Script Upload):

ATR_G — Intraday vs Daily ATR Strength Analyzer

💡 Short Description (One-line tagline):

Compare intraday and daily ATR strength to identify breakout volatility or low-momentum zones.

📖 Full Description (For “Description” field):
📊 Overview

The ATR_G Indicator (by Gaurav) helps you measure relative volatility strength between intraday and daily timeframes.
It highlights when current price movement is stronger or weaker than its average range using color-coded volatility zones.

⚙️ How It Works

Calculates the ATR (Average True Range) based on the past n candles (default: 10).

Compares the current candle’s range (High–Low) with its average ATR, giving a % ratio:

PATR
=
(
High

Low
)
ATR
×
100
PATR=
ATR
(High−Low)


×100

The same process is done for Daily timeframe using request.security() to fetch daily highs and lows.

📋 On-Chart Table Display

The indicator creates a compact table showing:

ATR → Average True Range

T_ATR → Current candle range

P_ATR (%) → Current % of ATR

D-ATR → Daily ATR

D_P_ATR (%) → Daily % of ATR

🧭 How to Use

When both P_ATR and D_P_ATR turn 🟧 (above 100%), expect momentum breakout.

When both turn 🟩 (below 100%), expect consolidation or mean reversion.

Combine with price structure, RSI, or ADX for directional confirmation.

🔧 Inputs

ATR_LEN: ATR calculation period (default = 10)

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.