Ultimate ATR-Adaptive Dynamic S&R Zones Pro

This indicator plots adaptive, ATR-based support and resistance zones using pivot highs/lows for precise peak/valley detection, dynamic padding scaled by ATR, and EMA smoothing for responsive, trend-following behavior. It creates visual zones (filled areas) with intermediate dashed-like levels, helping traders identify high-probability bounce/rejection areas, breakouts, and trend continuations — especially useful in volatile markets like crypto (e.g., BTC/USD) or forex.
The zones are asymmetric (stronger resistance padding vs. support) to better reflect real-market psychology, where upside exhaustion often occurs faster than downside support failure. EMA smoothing makes it more adaptive than traditional SMA-based channels.
KEY FEATURES
- Pivot-based detection of significant highs/lows (using ta.pivothigh/low) for accurate base levels
- ATR-adaptive zone width (multipliers for resistance/support separately)
- EMA smoothing on bases and final boundaries for reduced lag and cleaner visuals
- Filled support (green) and resistance (red) zones with customizable transparency
- Optional intermediate levels (25%, 50%, 75% within each zone) shown as dotted/circle style lines
- Built-in alerts for:
- Resistance breakout (crossover upper resistance)
- Support breakdown (crossunder lower support)
- Resistance rejection (rejection at lower resistance boundary)
- Support bounce (bounce at upper support boundary)
HOW IT WORKS
1. Detects pivot highs/lows over user-defined lookback (symmetric left/right bars).
2. Holds the last confirmed pivot value as base (step function for persistence).
3. Smooths bases with EMA for trend responsiveness.
4. Adds ATR-scaled padding: wider on resistance (multiplier_upper), slightly narrower/asymmetric on support.
5. Applies final EMA smoothing to zone edges for smooth, non-repainting behavior.
6. Draws upper/lower boundaries + fills + optional mids.
HOW TO USE
- **Bounce/Reversal trades**: Look for price rejecting at zone edges (e.g., wick rejection + alert). Green support zones often act as buying areas in uptrends; red resistance as selling areas in downtrends.
- **Breakout trades**: Confirmed crossover/crossunder with volume/price close beyond zone → potential trend continuation.
- Combine with volume, trend filters (e.g., EMA 200), or higher timeframe context.
- Best on 5m–4h timeframes for intraday/swing; adjust pivot_length longer for higher TFs.
SETTINGS EXPLANATION
- Pivot Lookback Length: Bars left/right for pivot detection (default 10 — increase for fewer but stronger levels).
- ATR Length: Period for volatility measure (default 14).
- Resistance/Support Multipliers: Control zone width (higher = wider zones, more conservative).
- Smoothing Length: EMA period — lower = more responsive, higher = smoother.
- Show Mid-Zone Levels: Toggle intermediate lines for finer precision.
- Zone Transparency & Colors: Customize visuals.
ALERTS
Set alerts directly from the conditions — messages are trader-friendly (e.g., "Price broke above resistance zone! Potential uptrend.").
This is an open-source evolution of common dynamic channel ideas, refined with community-inspired asymmetry, pivot persistence, and EMA for better real-time performance. Test on your favorite symbols!
Placement of your chart images
When publishing, TradingView automatically takes a screenshot of your current chart as the main image. For extra visuals, you can add up to 3 additional images in the description (or as separate chart snapshots).
To reference them in the text (so traders understand what they represent):
Volatile session on BTC/USD 5m: Highlights multiple rejections at intermediate levels (dotted lines) inside zones, useful for scalping entries
Example on BTC/USD 15m: Shows clear bounce from lower green support zone during downtrend pullback, followed by rejection at red resistance.
BTC/USD 1h timeframe: Demonstrates breakout above upper red resistance with strong volume, leading to continuation.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ tradingbauhaus โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ tradingbauhaus โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา