OPEN-SOURCE SCRIPT
Updated Smart Range Zones [Dr. Hafiz]

Smart Range Zones[Dr. Hafiz Edition]
Description:
This indicator highlights key market zones — High Range, Mid Range, and Low Range — to help traders visually understand dynamic support and resistance levels.
✅ High Range: Potential supply/resistance area
✅ Mid Range: Fair value or equilibrium zone
✅ Low Range: Potential demand/support area
The zones are calculated based on the highest and lowest price over a user-defined period (default: 130 bars) and dynamically projected forward.
🔸 EMA 15 Line is included as an optional trend filter — helping confirm direction or trend alignment.
🔧 Features:
Auto-calculated High/Mid/Low zones
Real-time dynamic projections
Right-aligned zone labels inside each box
Clean visual structure
Toggle for showing/hiding EMA 15
📌 Best suited for:
Intraday & swing traders
Range breakouts and rejections
Trend confirmation with EMA
Created and published by Dr. Hafiz, modified under the MPL 2.0 license.
Description:
This indicator highlights key market zones — High Range, Mid Range, and Low Range — to help traders visually understand dynamic support and resistance levels.
✅ High Range: Potential supply/resistance area
✅ Mid Range: Fair value or equilibrium zone
✅ Low Range: Potential demand/support area
The zones are calculated based on the highest and lowest price over a user-defined period (default: 130 bars) and dynamically projected forward.
🔸 EMA 15 Line is included as an optional trend filter — helping confirm direction or trend alignment.
🔧 Features:
Auto-calculated High/Mid/Low zones
Real-time dynamic projections
Right-aligned zone labels inside each box
Clean visual structure
Toggle for showing/hiding EMA 15
📌 Best suited for:
Intraday & swing traders
Range breakouts and rejections
Trend confirmation with EMA
Created and published by Dr. Hafiz, modified under the MPL 2.0 license.
Release Notes
update emas lineRelease Notes
📢 Important Update – EMA Crossover Alerts Added!Alhamdulillah, our Smart Range Zones [Dr. Hafiz] indicator has been updated with EMA 15 & EMA 50 crossover alerts 🔔 already used by more than 1600 members around the globe freely. if you have Premium TradingView, you can set alerts too.
This new feature automatically notifies you whenever a trend shift happens:
✅ BUY Alert → when EMA 15 crosses above EMA 50 (bullish momentum starts)
🔻 SELL Alert → when EMA 15 crosses below EMA 50 (bearish momentum begins)
💡 How to Add Alerts:
1️⃣ Add the updated indicator to your chart.
2️⃣ Click the Alarm (⏰) icon or press Alt + A.
3️⃣ Under Condition, select:
➡️ Smart Range Zones [Dr. Hafiz] + EMA Alerts
4️⃣ Choose your alert type:
• 🔔 EMA Buy Alert
• 🔔 EMA Sell Alert
5️⃣ Set “Once Per Bar Close” for better confirmation.
Stay tuned — more advanced alert options and automation updates are coming soon, InshaAllah 🚀
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.