OPEN-SOURCE SCRIPT
تم تحديثه HVM

do not delete. it will ashow to buy and sell triggere option. thank you
ملاحظات الأخبار
HVM – Hybrid Volatility & Market Structure
Session-based Opening Range + ATR Volatility Framework
Concept
HVM (Hybrid Volatility Model) is a session-aware trading indicator that merges Opening Range market structure with a continuous ATR-based volatility trend engine.
The script is designed to identify high-probability breakout, reclaim, and reversal scenarios by requiring confirmation from both session extremes and volatility behavior.
This is not a simple Opening Range Breakout or SuperTrend clone.
The originality lies in how volatility reversals are used to lock session extremes and later validate price acceptance beyond them.
How It Works
[]Session Structure Layer
Tracks the Opening Range (first bar of the session), previous session High/Low, and live session Peak/Valley.
[]Volatility Layer
Uses an ATR-based SuperTrend that runs continuously across sessions without daily resets.
Strategy Layer
Executes three distinct strategies that represent different market behaviors.
Opening Range Definition
[]Opening Range High, Low, and Open are captured from the first bar of the trading session.
[]These values are locked and used as structural reference points for the entire day.
This avoids repainting and creates a fixed session anchor.
Volatility Engine (ATR SuperTrend)
[]ATR = Average True Range over the selected volatility period.
[]Price Center = (High + Low) / 2
[]Upper Band = Price Center + (ATR × Multiplier)
[]Lower Band = Price Center − (ATR × Multiplier)
With the default multiplier of 1.0, the bands remain tight and responsive.
Trend reversals are used as confirmation events, not standalone trade signals.
Trading Strategies
Strategy 1 – Opening Range Breakout (Continuation)
[]Long: Opening Range High > Yesterday’s High AND price closes above Opening Range High.
[]Short: Opening Range Low < Yesterday’s Low AND price closes below Opening Range Low.
Represents strong directional continuation.
Strategy 2 – False Breakout Reclaim
[]Price breaks the Opening Range.
[]The script locks the highest (or lowest) price reached before the break.
Signal triggers only when price reclaims and closes beyond that locked level.
Represents liquidity sweeps and failed breakouts.
Strategy 3 – Volatility-Confirmed Reversal Continuation
[]Price breaks the Opening Range, forming a session extreme.
[]ATR trend flips in the opposite direction (pullback).
[]ATR trend flips back in the original direction.
[]Signal triggers when price closes beyond the locked session extreme.
Represents trend pullback followed by continuation.
Risk Management Logic
[]Long Trades:
If price sweeps yesterday’s low → Stop = Session Valley
Otherwise → Stop = Yesterday’s Low
[]Short Trades:
If price sweeps yesterday’s high → Stop = Session Peak
Otherwise → Stop = Yesterday’s High
Stops are based on market structure invalidation, not arbitrary distances.
Why This Is Not a Simple Mashup
[]Opening Range provides structural context.
[]ATR provides volatility regime awareness.
[]Session extremes are locked at volatility events.
[]Signals require price acceptance beyond frozen levels.
This interaction filters false signals better than using Opening Range or ATR alone.
Settings
[]Volatility Period – ATR calculation length.
[]Volatility Multiplier – Trend sensitivity.
[]Trading Direction – Long / Short / Both.
[]Display Options – Toggle session levels, range, and trend.
Custom Buy/Sell Levels – Optional discretionary triggers.
Usage Notes
[]Designed for intraday trading.
[]Signals trigger once per session per strategy.
Best used on liquid instruments with clear session structure.
ملاحظات الأخبار
HVM — Hybrid Volatility ModelHVM is a session-aware volatility and market-structure framework that blends
Opening Range dynamics, previous-session liquidity levels, and an adaptive
ATR-based trend engine to map directional bias, momentum shifts, and structural
price acceptance in real time.
━━━━━━━━━━━━━━━━━━━━━━
Overview
HVM is designed to answer three core questions every intraday trader faces:
• Where is price reacting relative to prior-session liquidity?
• Is the current move accepted or rejected by volatility structure?
• Is momentum aligned with directional continuation or reversal risk?
Instead of relying on single-condition triggers, HVM builds a layered
context model using session behavior, volatility expansion, and structural
break confirmation. This creates a clean separation between:
• Session structure
• Volatility efficiency
• Directional market flow
Together, these components help identify high-quality bullish and bearish
conditions without repainting or future data leakage.
━━━━━━━━━━━━━━━━━━━━━━
Core Components
█ Session Liquidity Framework
The indicator continuously tracks the Previous Session High and Low.
These levels act as external liquidity zones where stop runs, breakouts,
and rejections frequently occur.
Acceptance above or below these levels provides critical directional context.
█ Opening Range Engine
At the start of each new trading session, HVM captures the Opening Range
using the first candle of the day. This range defines:
• Initial balance
• Early institutional participation
• Session directional bias
Breaks and holds of the Opening Range, especially when aligned with
previous-session levels, often signal meaningful continuation.
█ Volatility Trend Model
HVM uses an ATR-based volatility envelope that adapts dynamically to
market conditions. Unlike static trend indicators, this model:
• Expands during high volatility
• Contracts during consolidation
• Flips direction only on confirmed structure breaks
This allows the trend filter to remain responsive without overreacting
to short-term noise.
━━━━━━━━━━━━━━━━━━━━━━
Directional Conditions
█ Bullish (Long) Context
Bullish conditions are identified when price demonstrates acceptance
above key session and volatility levels.
- LONG-1 — Opening Range acceptance above the previous session high,
confirmed by volatility trend alignment. - CUSTOM-LONG — Price acceptance above a user-defined reference level,
used for manual bias or higher-timeframe confluence.
█ Bearish (Short) Context
Bearish conditions occur when price accepts below major liquidity zones
and aligns with downside volatility expansion.
- SHORT-1 — Opening Range acceptance below the previous session low,
with bearish volatility confirmation. - CUSTOM-SHORT — Price acceptance below a user-defined reference level,
supporting discretionary or structural bias.
━━━━━━━━━━━━━━━━━━━━━━
Risk Context & Stop Reference
Rather than fixed or arbitrary stop levels, HVM provides contextual
risk references based on:
• Previous session extremes
• Current session high or low
These references help visualize where structural invalidation occurs,
allowing traders to define risk logically rather than emotionally.
━━━━━━━━━━━━━━━━━━━━━━
How to Use
█ Identify Structural Breaks
Use Opening Range and previous-session levels to determine whether price
is breaking into new value or rejecting higher/lower prices.
█ Confirm With Volatility Flow
Only prioritize directional setups when volatility structure aligns with
the break. This reduces false signals during ranging conditions.
█ Combine With Higher-Timeframe Bias
HVM performs best when used alongside higher-timeframe levels,
trend context, or macro session bias.
━━━━━━━━━━━━━━━━━━━━━━
Key Characteristics
- Non-repainting logic
- Session-based signal control
- Adaptive volatility filtering
- Clear bullish / bearish separation
- Designed for discretionary analysis
━━━━━━━━━━━━━━━━━━━━━━
Notes
HVM is not a standalone trading system. It is a contextual analysis tool
intended to enhance decision-making by visualizing where structure,
volatility, and session behavior align.
━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
The content provided in this indicator is for educational and informational
purposes only. It does not constitute financial advice, investment
recommendations, or a solicitation to engage in any trading activity.
All trading involves risk. Past performance does not guarantee future
results. Users are fully responsible for their own trading decisions and
risk management.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.