OPEN-SOURCE SCRIPT
Availability Hours

Draws two vertical lines on the chart to mark a custom daily trading session window.
A green line marks the session open and a red line marks the session close. Both times are fully customizable through the indicator settings using 24-hour format, allowing any trader to define their own available trading hours.
Automatically adjusts between Pacific Daylight Time (UTC-7) from March to November and Pacific Standard Time (UTC-8) from November to March, ensuring the lines always land at the correct local time year-round without any manual input.
Designed for traders who backtest within specific daily time windows and want a clear visual boundary to identify which candles fall inside or outside their chosen trading hours. Helpful for maintaining consistency when journaling trades and reviewing whether entries respected a defined session schedule.
A green line marks the session open and a red line marks the session close. Both times are fully customizable through the indicator settings using 24-hour format, allowing any trader to define their own available trading hours.
Automatically adjusts between Pacific Daylight Time (UTC-7) from March to November and Pacific Standard Time (UTC-8) from November to March, ensuring the lines always land at the correct local time year-round without any manual input.
Designed for traders who backtest within specific daily time windows and want a clear visual boundary to identify which candles fall inside or outside their chosen trading hours. Helpful for maintaining consistency when journaling trades and reviewing whether entries respected a defined session schedule.
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.