OPEN-SOURCE SCRIPT
Volatilidad (COCIENTE close) 14/90 + Zonas

📊 Volatility (CLOSE RATIO) 14/90 + Zones
This indicator measures relative market volatility by comparing the daily price range to the daily closing price, and then evaluating that value against its historical behavior over short-term (14) and medium-term (90) periods.
Unlike traditional volatility approaches based solely on the High–Low range, this indicator introduces a close-normalized ratio, providing a more realistic and comparable volatility measure across assets with different prices or trading regimes.
🔍 Calculation Methodology
SMA 14 → short-term reference
SMA 90 → medium-term reference
Normalized Volatility
Volatility 14 = (Ratio / SMA14) × 100
Volatility 90 = (Ratio / SMA90) × 100
These two curves show whether current volatility is below, near, or above its historical norm.
🎨 Color Zones (Market Context)
The background color dynamically reflects volatility conditions, allowing immediate visual interpretation:
🟢 Green – Low volatility / stable environment
🟡 Yellow – Moderate volatility
🟠 Orange – High volatility
🟤 Brown – Very high volatility / caution zone
🔴 Red – Extreme volatility / elevated risk
The zones can be calculated using either the 14-period or 90-period volatility, depending on user preference.
📈 Practical Interpretation
Low volatility (green/yellow):
Favorable environment for trend-following strategies and structured entries.
Rising volatility (orange/brown):
Increased risk, potential breakouts, or exhaustion phases.
Extreme volatility (red):
Unstable market conditions, prone to sharp reversals, whipsaws, and emotional price action.
This indicator does not generate entry or exit signals. It is designed as a context and risk filter, helping traders decide when to trade and when to stay out.
This indicator measures relative market volatility by comparing the daily price range to the daily closing price, and then evaluating that value against its historical behavior over short-term (14) and medium-term (90) periods.
Unlike traditional volatility approaches based solely on the High–Low range, this indicator introduces a close-normalized ratio, providing a more realistic and comparable volatility measure across assets with different prices or trading regimes.
🔍 Calculation Methodology
SMA 14 → short-term reference
SMA 90 → medium-term reference
Normalized Volatility
Volatility 14 = (Ratio / SMA14) × 100
Volatility 90 = (Ratio / SMA90) × 100
These two curves show whether current volatility is below, near, or above its historical norm.
🎨 Color Zones (Market Context)
The background color dynamically reflects volatility conditions, allowing immediate visual interpretation:
🟢 Green – Low volatility / stable environment
🟡 Yellow – Moderate volatility
🟠 Orange – High volatility
🟤 Brown – Very high volatility / caution zone
🔴 Red – Extreme volatility / elevated risk
The zones can be calculated using either the 14-period or 90-period volatility, depending on user preference.
📈 Practical Interpretation
Low volatility (green/yellow):
Favorable environment for trend-following strategies and structured entries.
Rising volatility (orange/brown):
Increased risk, potential breakouts, or exhaustion phases.
Extreme volatility (red):
Unstable market conditions, prone to sharp reversals, whipsaws, and emotional price action.
This indicator does not generate entry or exit signals. It is designed as a context and risk filter, helping traders decide when to trade and when to stay out.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.