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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.