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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
SilverHawk Suite
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
SilverHawk Suite
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.