OPEN-SOURCE SCRIPT
تم تحديثه Intraday Session Ranges (Asian-London-NY) - JonathanJD86

This script is a technical utility designed to automatically track and visualize the high and low price levels of the three major trading sessions (Asian, London, and New York).
How it works: The script uses the time() function with the America/New_York timezone anchor to ensure accuracy regardless of the user's local time. It tracks the maximum and minimum price values during specific user-defined intervals.
Key Methodology:
Vertical Tick Offset: Unlike standard session boxes, this tool allows users to set a vertical gap (in ticks) so that the labels do not overlap the candle wicks, providing a clearer view of the actual price action.
Session Intervals: Defaulted to high-activity windows: Asian (20:00-00:00), London (02:00-05:00), and New York (08:30-16:00).
Dynamic Visibility: The script includes a logical check to automatically hide levels on timeframes higher than 1H, preventing chart clutter during macro analysis.
How it works: The script uses the time() function with the America/New_York timezone anchor to ensure accuracy regardless of the user's local time. It tracks the maximum and minimum price values during specific user-defined intervals.
Key Methodology:
Vertical Tick Offset: Unlike standard session boxes, this tool allows users to set a vertical gap (in ticks) so that the labels do not overlap the candle wicks, providing a clearer view of the actual price action.
Session Intervals: Defaulted to high-activity windows: Asian (20:00-00:00), London (02:00-05:00), and New York (08:30-16:00).
Dynamic Visibility: The script includes a logical check to automatically hide levels on timeframes higher than 1H, preventing chart clutter during macro analysis.
ملاحظات الأخبار
Update: UI Optimization & Customizable BackgroundsThis update focuses on improving chart clarity and user experience by providing more control over visual elements.
What’s New:
Minimalist View by Default: The session background highlights are now disabled by default (show_bg = false) to ensure a cleaner look upon loading.
Toggleable Highlights: Users can now easily enable or disable the colored session columns through the "Show Background Highlight" option in the settings.
Enhanced Tooltips: Added descriptive tooltips to the input parameters to help users understand the functionality of each setting directly from the configuration panel.
General Overview & Methodology
This script is a technical utility designed to automatically track and visualize the high and low price levels of the three major trading sessions (Asian, London, and New York).
How it works: The script uses the time() function with the America/New_York timezone anchor to ensure accuracy regardless of the user's local time. It tracks the maximum and minimum price values during specific user-defined intervals.
Vertical Tick Offset: Unlike standard session boxes, this tool allows users to set a vertical gap (in ticks) so that the labels do not overlap the candle wicks, providing a clearer view of the actual price action.
Session Intervals: Defaulted to high-activity windows:
Asian (20:00 - 00:00)
London (02:00 - 05:00)
New York (08:30 - 16:00)
Dynamic Visibility: The script includes a logical check to automatically hide levels on timeframes higher than 1H, preventing chart clutter during macro analysis.
ملاحظات الأخبار
What’s New:New "Session Toggle" Group: I have added a dedicated settings group that allows you to independently enable or disable each session.
✅ Show Asian Session: Toggle visibility for the Asian range.
✅ Show London Session: Toggle visibility for the London range.
✅ Show NY Session: Toggle visibility for the New York range.
Minimalist Default State: Session background highlights are now disabled by default (show_bg = false) to keep your workspace clean.
Custom Highlights: You can still re-enable session backgrounds manually via the "Show Background Highlight" option.
Interactive Tooltips: Added clear descriptions to the input panel to guide you through each setting.
ملاحظات الأخبار
Release Notes: Session Bias Analysis & Visual OverhaulThis update introduces a new analytical layer to the script, allowing traders to quickly identify the sentiment of each session at a glance.
New Analytical Features:
Session Bias Icons: Added clean visual identifiers to mark the closing sentiment of each session:
▲ (Green Triangle): Bullish session (Price closed near the session high).
▼ (Red Triangle): Bearish session (Price closed near the session low).
◆ (Orange Diamond): Range/Neutral session (Price closed near the center).
Adjustable Sensitivity: New "Range % Threshold" setting (Default: 30%). This defines the area required for a bullish or bearish classification. For example, at 30%, the price must close within the top 30% of the session range to trigger the bullish icon.
Visibility Control: Added a toggle to enable/disable these icons via "Show Session Bias Icon".
Improved Session Management:
New "Session Toggle" Group: Independent controls to show/hide the Asian, London, or New York sessions specifically.
UI Refinement: Background highlights are now optional and disabled by default (show_bg = false) for a cleaner price action focus.
Configuration Tooltips: Comprehensive descriptions added to all settings for better user guidance.
ملاحظات الأخبار
What's New:- Day Open Line: Added a midnight (NY) day open line with a "DOp" label. Configurable color, style, and width.
- Session Range Boxes: Added boxes that display each session's high/low range, with adjustable fill and border transparency, plus a max-boxes limit to keep the chart clean.
- Post-Session Level Extension: Session High/Low levels now extend forward after the session ends, and automatically stop extending once price taps them (mitigation logic). Includes a max-sessions-to-extend limit.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.