OPEN-SOURCE SCRIPT
FX Session Highlighter

This indicator highlights the Tokyo, London and New York trading sessions on intraday charts, so you can see at a glance which market is active and how price behaves inside each session.
How it works
Each session is defined by a time range interpreted in its own local timezone (Asia/Tokyo, Europe/London, America/New_York). Because the timezone is attached to each session, daylight-saving shifts are handled automatically — you do not need to adjust the times twice a year.
Features
Background highlight per session (colors and time ranges are fully configurable, each session can be toggled individually)
Optional session high/low tracking, drawn as lines while the session is active
Alert conditions for the open of each session
Notes and limitations
The indicator works on intraday timeframes only; on daily and higher timeframes nothing is drawn. Default time ranges reflect commonly used market hours, but "session" definitions vary between traders — adjust the ranges to match your own approach. This is a visualization tool and implies nothing about future price movement.
How it works
Each session is defined by a time range interpreted in its own local timezone (Asia/Tokyo, Europe/London, America/New_York). Because the timezone is attached to each session, daylight-saving shifts are handled automatically — you do not need to adjust the times twice a year.
Features
Background highlight per session (colors and time ranges are fully configurable, each session can be toggled individually)
Optional session high/low tracking, drawn as lines while the session is active
Alert conditions for the open of each session
Notes and limitations
The indicator works on intraday timeframes only; on daily and higher timeframes nothing is drawn. Default time ranges reflect commonly used market hours, but "session" definitions vary between traders — adjust the ranges to match your own approach. This is a visualization tool and implies nothing about future price movement.
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.