OPEN-SOURCE SCRIPT
Mis à jour

ADR% / ATR / Dynamic LoD–HoD Table

1 196
This indicator displays a clean data table showing ADR%, ATR, and a dynamic LoD/HoD distance value based on daily trend conditions.
When price is above the 21-day or 50-day moving average, the indicator shows the distance from the Low of Day.
When price is below BOTH daily moving averages, it automatically switches to showing distance from the High of Day.
The table updates in real-time and gives a fast, volatility-based view of where price sits inside the day’s range.
Features
• ADR% (Average Daily Range Percentage)
• ATR (Average True Range)
• Automatic LoD → HoD switching based on daily trend
• Customizable colors and layout
• Clean, space-efficient table format
• Designed for intraday and volatility-focused traders
Notes de version
🧠 Original Indicator (What it was built for)
Your original script was a daily volatility + structure dashboard, showing:
1. ADR%
Measures average daily range as a percentage
Used to understand how much a stock typically moves in a day
2. ATR (Daily)
True volatility in raw price terms
Optional display in the table
3. LoD / HoD Distance (Normalized)
Shows how far price is from:
Low of Day (LoD) in bullish conditions
High of Day (HoD) in bearish conditions
Expressed in ATR-normalized % terms
Helps gauge “room left to move” intraday relative to volatility
4. Trend Filter (Simple Regime Logic)
Uses:
SMA 21
SMA 50
If price is below both → bearish regime
This flips whether you focus on:
HoD (bearish)
LoD (bullish)
5. Table Output (Top Right)
Clean dashboard showing:
ADR%
ATR
Distance to HoD/LoD
🔧 What We Added (New Feature)
⭐ “Max Entry” / “Optimal Entry”
This is the major upgrade.
We introduced a volatility-based entry cap using ATR:
Logic added:
Uses 50% of ATR
Anchored from:
Low of Day (for longs)
High of Day (for shorts)
📌 Formulas added:
Long setup:
Max Long Entry = LoD + (ATR × 0.5)
Short setup:
Max Short Entry = HoD - (ATR × 0.5)
🧠 What this changes conceptually
Before:
You only knew volatility and distance
Now:
You also know where NOT to chase price beyond
This turns your indicator into a:
“Execution boundary tool” instead of just a volatility dashboard
📊 New Behavior in the Table
You now see:
ADR%
ATR
LoD/HoD distance
Max Entry (renamed from “Optimal Entry”)
So the table now answers:
“How much does this move normally… and what is my disciplined entry limit today?”

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.