OPEN-SOURCE SCRIPT
Zaktualizowano

ATR % of yesterday close with SMA (Bull/Bear colored)

208
This script visualizes the Average True Range (ATR) as a percentage of a user-selected price point for a quick view of volatility.

ATR % values are plotted as a color-coded histogram. Bullish days (close > prior close) paint the bar green; bearish days (close < prior close) paint it red; unchanged days are gray.

Two simple moving average (SMA) overlays to reveal volatility trends.

Variables:

Histogram bars represent ATR as a % of one of:
 - Previous Close (default option)
 - Previous Open
 - Today Close
 - Today Open

Two SMA lines (default: blue for 20-period, orange for 5-period) shown on ATR % for trend/range regime tracking.

Optionally display the ATR % in continuous line (yellow)—hidden by default.

If you find it helpful, feel free to share any feedback and how you incorporate it into your trading strategy with the community!
Informacje o Wersji
Added 2 more SMA line options with default values of 50 and 250 days.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.