OPEN-SOURCE SCRIPT
time zone indices

Precision Session Highlighter [Multi-Asset & Timezone]
This indicator is designed to highlight specific time ranges (sessions) with absolute precision across all asset classes, including Forex, Stocks, and Indices (NAS100, US30, SPX500).
The Problem it Solves:
Traders often face "time-shift" issues when moving from Forex to Indices because brokers and exchanges use different server times. Standard indicators often fail to align with the actual New York or London open when the chart is set to local time or RTH (Regular Trading Hours).
Key Features:
Manual Timezone Offset: Built using Pine Script v5, this script allows you to manually select the Timezone (e.g., UTC-5 for New York). This ensures the session box starts exactly at the candle you intend, regardless of your local clock or broker settings.
Indices Optimization: Perfect for marking Killzones or Open Ranges in indices where gap hours or pre-market data often displace standard session drawings.
Clean Visuals: Fully customizable background colors and transparency levels to maintain a clean workspace.
How to use:
Input your desired session time (e.g., 0930-1200).
Select the appropriate UTC offset for the asset you are trading.
If trading Indices, ensure your chart is set to "Electronic Trading Hours" (ETH) to see pre-market sessions.
This indicator is designed to highlight specific time ranges (sessions) with absolute precision across all asset classes, including Forex, Stocks, and Indices (NAS100, US30, SPX500).
The Problem it Solves:
Traders often face "time-shift" issues when moving from Forex to Indices because brokers and exchanges use different server times. Standard indicators often fail to align with the actual New York or London open when the chart is set to local time or RTH (Regular Trading Hours).
Key Features:
Manual Timezone Offset: Built using Pine Script v5, this script allows you to manually select the Timezone (e.g., UTC-5 for New York). This ensures the session box starts exactly at the candle you intend, regardless of your local clock or broker settings.
Indices Optimization: Perfect for marking Killzones or Open Ranges in indices where gap hours or pre-market data often displace standard session drawings.
Clean Visuals: Fully customizable background colors and transparency levels to maintain a clean workspace.
How to use:
Input your desired session time (e.g., 0930-1200).
Select the appropriate UTC offset for the asset you are trading.
If trading Indices, ensure your chart is set to "Electronic Trading Hours" (ETH) to see pre-market sessions.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.