Dynamic ATR Buy Sell Zones
- 지표
-
Jose Rodrgues Chaves
소개
저는 MetaTrader 5 지표와 수동 거래 도구에 집중하는 독립 MQL5 개발자입니다. 제 작업은 두 가지 아이디어의 교차점에 있습니다. 트레이더가 실제로 사용하는 시장 구조 개념(Smart Money Concepts, 유동성, 주문 흐름)과, 이러한 개념이 리페인트 없이 실시간으로 작동하도록 만드는 데 필요한 엔지니어링 규율입니다.
나의 여정 - 버전: 1.36
- 활성화: 10
Dynamic Buy/Sell S/R Zones with Fibonacci & D/W/M Levels
Adaptive buy/sell zones powered by ATR volatility, anchored to swing highs/lows, with Fibonacci retracement and previous Day/Week/Month levels — all in one clean chart overlay.
Overview
ATR Zones is a professional-grade MetaTrader 5 indicator that automatically plots dynamic support and resistance zones directly on your chart. Unlike static S/R tools, ATR Zones adapts to real-time market volatility using the Average True Range (ATR), ensuring your zones remain relevant whether the market is quiet or explosive.
The indicator identifies swing highs and lows on a higher timeframe, then projects precisely calculated BUY zones (near swing lows) and SELL zones (near swing highs) onto your current chart. Each zone is width-scaled by ATR, so it breathes with the market.
✨ Key Features
🎯 Dynamic Buy & Sell Zones
-
Anchored to swing highs/lows on a user-selected higher timeframe (default: M30)
-
Zone thickness automatically scales with ATR volatility (default: M5 ATR)
-
Retracement-based positioning for precise entry areas
-
Smart overlap prevention — buy and sell zones never conflict
-
Optional distance filter to hide zones too far from current price
📐 Fibonacci Retracement Levels
-
Auto-drawn between the detected swing low and swing high
-
Fully customizable levels (default: 0.236, 0.382, 0.5, 0.618, 0.786)
-
Clean labels showing both percentage and price
-
Toggle on/off with a single input
📊 Previous Day / Week / Month High & Low
-
Automatically plots PDH, PDL, PWH, PWL, PMH, PML
-
Customizable colors and line styles
-
Extends cleanly to the right edge of your chart
-
Perfect for institutional-level confluence
🎨 Fully Customizable Visuals
-
Buy zone color (default: Lime green)
-
Sell zone color (default: Crimson red)
-
Fibonacci line and label colors
-
D/W/M high/low colors and line style
-
Toggle labels, zones, and Fib independently
⚙️ Flexible Timeframe Configuration
-
Swing detection timeframe: any TF (M1 to MN1)
-
ATR timeframe: independent from swing TF
-
Lookback period: fully adjustable
-
Works on any symbol — Forex, indices, commodities, crypto
🧠 How It Works
-
Swing Detection — Scans the last N bars on your chosen Swing Timeframe to find the highest high and lowest low.
-
Volatility Scaling — Reads ATR from your chosen ATR Timeframe to determine zone thickness.
-
Zone Projection — Places a BUY zone above the swing low and a SELL zone below the swing high, using your retracement fractions.
-
Fibonacci Overlay — Draws retracement levels between the swing extremes.
-
D/W/M Levels — Adds previous period highs/lows for confluence.
-
Auto-Update — Recalculates on every new bar, keeping zones fresh.
🎛️ Input Parameters
| Group | Parameter | Default | Description |
|---|---|---|---|
| Zones | Show buy/sell zones | true | Enable/disable zones |
| Swing Timeframe | M30 | TF for swing detection | |
| Swing Lookback | 30 | Bars to scan | |
| ATR Timeframe | M5 | TF for ATR | |
| ATR Period | 14 | ATR averaging period | |
| Zone Width (ATR) | 1.0 | Thickness multiplier | |
| Buy Retracement | 0.05 | Buy zone offset from swing low | |
| Sell Retracement | 0.05 | Sell zone offset from swing high | |
| Display | Show Labels | true | Price labels on zones |
| Max Distance (ATR) | 0.0 | Hide distant zones (0 = off) | |
| Buy Zone Color | Lime | Green zone color | |
| Sell Zone Color | Crimson | Red zone color | |
| Fibonacci | Enable Fib | true | Show Fib levels |
| Fib Levels | 0.236,0.382,0.5,0.618,0.786 | Comma-separated | |
| Fib Color | Gold | Line color | |
| Fib Price Color | White | Label color | |
| D/W/M | Show Prev Day | true | PDH/PDL |
| Show Prev Week | true | PWH/PWL | |
| Show Prev Month | true | PMH/PML | |
| High Color | DeepSkyBlue | Previous high color | |
| Low Color | Orange | Previous low color | |
| Line Style | Dash | D/W/M line style |
📈 Recommended Usage
-
Trend Trading — Use BUY zones in uptrends, SELL zones in downtrends as pullback entries.
-
Range Trading — Fade the edges of BUY/SELL zones in consolidation.
-
Confluence Trading — Combine zones with Fib levels and PDH/PDL for high-probability setups.
-
Multi-Timeframe Analysis — Set Swing TF higher than your chart TF for stronger zones.
-
Volatility Awareness — Watch ATR-scaled zones widen during news events.
💡 Best Practices
-
Use on liquid symbols with reliable ATR data.
-
Combine with price action confirmation (candlestick patterns, breakouts).
-
Adjust InpZoneATRWidth for tighter or wider zones depending on your strategy.
-
Set InpMaxDistATR to filter out irrelevant distant zones on volatile pairs.
-
Backtest on your preferred timeframe before live trading.
⚠️ Disclaimer
This indicator is an educational tool only — not financial advice. The levels and zones shown are reference points, not buy/sell signals.
Trading involves risk. You may lose some or all of your capital. All trading decisions and risk management are your responsibility.
No profit is guaranteed. Results may vary between brokers and market conditions. The developer is not liable for any losses or damages.
All sales are final after download, except where required by law. MQL5 Market policies also apply.
By using this indicator, you accept these terms.
