OPEN-SOURCE SCRIPT
تم تحديثه VXX True Session Expansion Card

# VXX True Session Expansion Card
## Overview
The VXX True Session Expansion Card is a volatility analysis tool designed for futures traders who want to understand how much of the market's expected daily movement has already been consumed throughout the trading session.
Unlike traditional volatility indicators that only display expected range, this indicator compares projected volatility against actual session expansion and helps traders determine whether the market still has room to move or is becoming stretched.
The indicator was developed specifically for session-based trading of futures markets such as MNQ, NQ, MES, ES, MGC, and similar instruments.
---
## Core Concept
The indicator treats volatility as a daily "budget."
First, an estimated daily range is calculated using the VXX volatility index:
VXX ÷ 16 = Expected Daily Volatility %
The expected percentage move is then applied to the Globex session opening price (6:00 PM Eastern Time):
Globex Open × Volatility % = Projected Daily Range
This projected range represents the market's estimated daily volatility budget.
The indicator then measures how much of that budget has been consumed as the trading day progresses.
---
## Session-Based Expansion Analysis
The indicator divides the futures trading day into three primary sessions:
• Asia Session (6:00 PM ET – 2:00 AM ET)
• London Session (3:00 AM ET – 8:00 AM ET)
• New York Session (8:00 AM ET – 5:00 PM ET)
Instead of measuring overlapping session ranges, the indicator focuses on non-overlapping expansion.
### Asia Range
Asia establishes the initial trading range.
Asia Range = Asia High − Asia Low
### London Expansion
London only counts new movement outside of the established Asia range.
Examples:
• New highs above Asia High
• New lows below Asia Low
Any movement occurring inside the Asia range is ignored.
### New York Expansion
New York only counts new movement outside of the combined Asia and London range.
This approach prevents double-counting volatility and provides a more accurate measure of true market expansion.
---
## Volatility Budget Tracking
The indicator calculates:
• Projected Daily Range
• Actual Expanded Range
• Remaining Range Available
This allows traders to determine whether the market has:
• Significant room left to expand
• Consumed most of its expected daily volatility
• Exceeded projected volatility
---
## Volatility Status System
To simplify interpretation, the indicator automatically classifies market conditions into four categories.
### 🟦 Plenty Left
Less than 50% of projected volatility has been consumed.
Interpretation:
The market still has substantial room for expansion.
### 🟩 Healthy
50%–80% of projected volatility has been consumed.
Interpretation:
Normal market conditions.
### 🟨 Caution
80%–100% of projected volatility has been consumed.
Interpretation:
The market is becoming extended and traders should be more selective when pursuing continuation trades.
### 🟥 Stretch
More than 100% of projected volatility has been consumed.
Interpretation:
The market has exceeded projected volatility expectations and may be more vulnerable to consolidation, profit-taking, failed breakouts, or reversals.
---
## News Day Volatility Adjustment
Major economic events can cause actual volatility to significantly exceed standard projections.
The indicator includes a Volatile Day Multiplier that allows traders to adjust expected range calculations.
Suggested values:
• 1.00x = Normal Trading Day
• 1.25x = Moderately Volatile Day
• 1.50x = High Volatility Day
• 1.75x–2.00x = Extreme Volatility Events
Examples include:
• CPI
• FOMC
• Non-Farm Payrolls (NFP)
• Major Central Bank Announcements
• Unexpected Geopolitical Events
---
## Compact Dashboard Mode
The indicator includes a Compact Mode designed for traders who prefer a simplified view.
Users can selectively display:
• News Day Reminder
• Globex Open
• Adjusted Full Range
• True Percent Used
• Volatility Status
Additional fields can be enabled or disabled individually to create a personalized dashboard.
---
## Intended Use
This indicator is designed to assist traders with:
• Session-based trading
• ICT / Smart Money Concepts
• Liquidity sweeps
• Session range expansion studies
• Market structure analysis
• Intraday volatility assessment
• Trade management
• Risk management
The indicator is not intended to generate buy or sell signals.
Instead, it provides contextual information about volatility consumption and remaining expansion potential throughout the trading day.
---
## Disclaimer
This indicator provides volatility estimates and market context only. Projected ranges are not guarantees of future market movement. Traders should combine this tool with their existing analysis, risk management, and trading methodology.
## Overview
The VXX True Session Expansion Card is a volatility analysis tool designed for futures traders who want to understand how much of the market's expected daily movement has already been consumed throughout the trading session.
Unlike traditional volatility indicators that only display expected range, this indicator compares projected volatility against actual session expansion and helps traders determine whether the market still has room to move or is becoming stretched.
The indicator was developed specifically for session-based trading of futures markets such as MNQ, NQ, MES, ES, MGC, and similar instruments.
---
## Core Concept
The indicator treats volatility as a daily "budget."
First, an estimated daily range is calculated using the VXX volatility index:
VXX ÷ 16 = Expected Daily Volatility %
The expected percentage move is then applied to the Globex session opening price (6:00 PM Eastern Time):
Globex Open × Volatility % = Projected Daily Range
This projected range represents the market's estimated daily volatility budget.
The indicator then measures how much of that budget has been consumed as the trading day progresses.
---
## Session-Based Expansion Analysis
The indicator divides the futures trading day into three primary sessions:
• Asia Session (6:00 PM ET – 2:00 AM ET)
• London Session (3:00 AM ET – 8:00 AM ET)
• New York Session (8:00 AM ET – 5:00 PM ET)
Instead of measuring overlapping session ranges, the indicator focuses on non-overlapping expansion.
### Asia Range
Asia establishes the initial trading range.
Asia Range = Asia High − Asia Low
### London Expansion
London only counts new movement outside of the established Asia range.
Examples:
• New highs above Asia High
• New lows below Asia Low
Any movement occurring inside the Asia range is ignored.
### New York Expansion
New York only counts new movement outside of the combined Asia and London range.
This approach prevents double-counting volatility and provides a more accurate measure of true market expansion.
---
## Volatility Budget Tracking
The indicator calculates:
• Projected Daily Range
• Actual Expanded Range
• Remaining Range Available
This allows traders to determine whether the market has:
• Significant room left to expand
• Consumed most of its expected daily volatility
• Exceeded projected volatility
---
## Volatility Status System
To simplify interpretation, the indicator automatically classifies market conditions into four categories.
### 🟦 Plenty Left
Less than 50% of projected volatility has been consumed.
Interpretation:
The market still has substantial room for expansion.
### 🟩 Healthy
50%–80% of projected volatility has been consumed.
Interpretation:
Normal market conditions.
### 🟨 Caution
80%–100% of projected volatility has been consumed.
Interpretation:
The market is becoming extended and traders should be more selective when pursuing continuation trades.
### 🟥 Stretch
More than 100% of projected volatility has been consumed.
Interpretation:
The market has exceeded projected volatility expectations and may be more vulnerable to consolidation, profit-taking, failed breakouts, or reversals.
---
## News Day Volatility Adjustment
Major economic events can cause actual volatility to significantly exceed standard projections.
The indicator includes a Volatile Day Multiplier that allows traders to adjust expected range calculations.
Suggested values:
• 1.00x = Normal Trading Day
• 1.25x = Moderately Volatile Day
• 1.50x = High Volatility Day
• 1.75x–2.00x = Extreme Volatility Events
Examples include:
• CPI
• FOMC
• Non-Farm Payrolls (NFP)
• Major Central Bank Announcements
• Unexpected Geopolitical Events
---
## Compact Dashboard Mode
The indicator includes a Compact Mode designed for traders who prefer a simplified view.
Users can selectively display:
• News Day Reminder
• Globex Open
• Adjusted Full Range
• True Percent Used
• Volatility Status
Additional fields can be enabled or disabled individually to create a personalized dashboard.
---
## Intended Use
This indicator is designed to assist traders with:
• Session-based trading
• ICT / Smart Money Concepts
• Liquidity sweeps
• Session range expansion studies
• Market structure analysis
• Intraday volatility assessment
• Trade management
• Risk management
The indicator is not intended to generate buy or sell signals.
Instead, it provides contextual information about volatility consumption and remaining expansion potential throughout the trading day.
---
## Disclaimer
This indicator provides volatility estimates and market context only. Projected ranges are not guarantees of future market movement. Traders should combine this tool with their existing analysis, risk management, and trading methodology.
ملاحظات الأخبار
Updated the VXX True Session Expansion Card with new dashboard customization options.Changes include:
* Added user-selectable text colors for dashboard headers, labels, values, key metrics, news notes, and volatility status cells.
* Added opacity/transparency controls for dashboard text colors.
* Added customizable header background color and opacity.
* Added customizable news note background color and opacity.
* Added an option to keep the volatility status color dynamic or use a manual user-selected status color.
* Expanded Compact Mode so the existing toggles for Remaining Range, Asia Range, London Expansion, and NY Expansion now display properly when enabled.
* Improved dashboard styling flexibility for users who prefer different chart themes, backgrounds, and visibility settings.
No changes were made to the core VXX range calculation logic. This update is focused on user customization, dashboard readability, and visual flexibility.
ملاحظات الأخبار
## Update### Fixed Globex Open Daily Reset
The indicator now properly resets at the 6:00 PM ET Globex open, ensuring that each new futures trading day starts with a clean volatility calculation.
Improvements include:
* Daily volatility calculations now restart at the new Globex session.
* Asia, London, and New York session tracking begin fresh each futures day.
* Eliminates the possibility of prior-day session data carrying into the next trading session.
* Improved dashboard accuracy during the Asia session and early Globex trading hours.
Additionally, session values that have not yet formed now display **"Pending"** instead of **"NaN"**, providing a cleaner and more intuitive dashboard experience.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.