OPEN-SOURCE SCRIPT

Market Sessions Highlighter with Yesterday's High/Low

Description:
This indicator is designed to enhance your chart analysis by automatically highlighting the three major market sessions—Asian, European, and US—using subtle background colors that adapt to your chart’s exchange timezone. In addition, it plots the previous day’s high and low as horizontal lines, providing key levels that can serve as potential support and resistance zones.

Features:

Session Highlighting:

-Asian Session: Highlights with a subtle yellow background.
-European Session: Highlights with a subtle blue background.
-US Session: Highlights with a subtle light red background.
-The sessions automatically adjust to the exchange timezone set in your chart.

Previous Day’s High and Low:

-Automatically calculates the previous day’s highest and lowest prices using daily boundaries.
-Plots these levels as horizontal lines on your chart to help identify important support and resistance levels.

Customization:

-Built using Pine Script v5, making it easy to customize further if needed.
-Designed to be visually unobtrusive while providing useful market context.

Aviso legal