OPEN-SOURCE SCRIPT
Session Highlighter (Asia / London / New York)

This TradingView Pine Script highlights the three major Forex sessions—Asia, London, and New York—directly on the chart. Each session has customizable start/end times (based on New York time), toggle switches to show or hide them, and adjustable background colors. The script automatically detects sessions that cross midnight and shades the chart accordingly. It can also place optional labels at the exact opening of each session.
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.