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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.