OPEN-SOURCE SCRIPT
SilverHawk Range Box

SilverHawk Range Box
This indicator detects volatility compression (ranging markets) using standard deviation, variance, and ATR thresholds, then draws a dynamic range box with trend line.
Features:
- Range detection when volatility is low (compressed std/var/ATR)
- Range box with mid bands and gradient fills
- Trend line inside range (bullish/bearish color)
- Bottom-left warning note when range is active
- Alert on range start
Settings:
- Range Period: lookback length (default 10)
- Range Multiplier: band width (default 1.8)
- StdDev/Variance/ATR Multipliers: compression thresholds (default 0.8/0.8/0.9)
- Show Trend Line / Range Bands: toggle visuals
- Enable Alerts: toggle range start alert
Best used on H1 to H4 timeframes in Forex or indices to avoid choppy ranging markets. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
This indicator detects volatility compression (ranging markets) using standard deviation, variance, and ATR thresholds, then draws a dynamic range box with trend line.
Features:
- Range detection when volatility is low (compressed std/var/ATR)
- Range box with mid bands and gradient fills
- Trend line inside range (bullish/bearish color)
- Bottom-left warning note when range is active
- Alert on range start
Settings:
- Range Period: lookback length (default 10)
- Range Multiplier: band width (default 1.8)
- StdDev/Variance/ATR Multipliers: compression thresholds (default 0.8/0.8/0.9)
- Show Trend Line / Range Bands: toggle visuals
- Enable Alerts: toggle range start alert
Best used on H1 to H4 timeframes in Forex or indices to avoid choppy ranging markets. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
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.
SilverHawk Suite
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.
SilverHawk Suite
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.