Market Sessions + Resistance/Support filter [Dots3Red]This indicator is designed to identify the major global trading sessions:
New York
London
Tokyo
Hong Kong
Shanghai
Sydney
Each session is displayed on the main chart as a colored box representing its active trading hours.
Session Visualization
For every session:
The top boundary of the box represents the highest price reached during the session.
The bottom boundary represents the lowest price reached during the session.
In real-time market conditions, the session box dynamically updates as new highs or lows are formed.
Each session’s opening and closing are labelled directly on the chart:
NY O / NY C — New York Open / Close
LN O / LN C — London Open / Close
TK O / TK C — Tokyo Open / Close
HK O / HK C — Hong Kong Open / Close (optional)
SD O / SD C — Sydney Open / Close (optional)
SH O / SH C — Shanghai Open / Close (optional)
The indicator also includes a statistics table displayed in the top-right corner of the chart.
The table provides key session data, including:
Session Open/Close status
Session High
Session Low
Support & Resistance Proximity Filter
The indicator also includes a Support & Resistance proximity filter.
The purpose of this filter is to automatically track how close the current session’s price action is to the highs or lows of previous sessions.
Proximity is calculated as a percentage.
The default value is 0.1%, but this can be adjusted by the user in the settings.
When the current price approaches a previous session’s high or low within the defined percentage threshold, the indicator draws a green dotted line to highlight the level.
Example
If the previous session high is 100 and the proximity threshold is 0.1%, the filter will trigger when the current high exceeds 99.90 (within 0.1% of 100).
A green dotted line will then be drawn from that previous high level to the current bar.
อินดิเคเตอร์ Pine Script®






















