OPEN-SOURCE SCRIPT

Availability Hours

194
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.

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.