PROTECTED SOURCE SCRIPT
NY 4H High/Low Levels — VIPIN

What this script does
This indicator automatically marks the first 4 hours of each New York trading day (00:00–03:59, America/New_York time). It calculates the High and Low of that period and plots them as horizontal levels. The lines extend only until the end of the same New York day. Optionally, you can display the previous N days’ levels for additional context.
Why it is useful
The New York session is one of the most active trading sessions. The first 4 hours often set intraday liquidity pools and reference levels that many traders monitor for breakouts or reversals. This tool helps traders identify and visualize those ranges quickly on the chart.
How it works
• Uses TradingView’s time() function to detect bars within 00:00–03:59 America/New_York.
• Accumulates the highest high and lowest low during that 4-hour window.
• At the end of the window, draws High and Low lines for the current day (extend until that day ends).
• Optionally stores and displays levels from a chosen number of previous days.
• Option to show a shaded box highlighting the 4-hour window.
Settings
• Timezone (default: America/New_York)
• Show 4H Window Box (on/off)
• Line colors, width
• Show previous days’ levels (on/off, with how many days to keep)
How to use
• Best applied on intraday timeframes (1m–1h).
• Use these levels as reference points for your own strategy (e.g., breakout, mean reversion, or confluence with other tools).
• The indicator is a utility tool: it does not generate buy/sell signals by itself.
Notes
This script is original: it is not a mashup of multiple public indicators but a dedicated tool to highlight a specific, well-defined trading session.
It is provided for educational purposes only and is not financial advice.
This indicator automatically marks the first 4 hours of each New York trading day (00:00–03:59, America/New_York time). It calculates the High and Low of that period and plots them as horizontal levels. The lines extend only until the end of the same New York day. Optionally, you can display the previous N days’ levels for additional context.
Why it is useful
The New York session is one of the most active trading sessions. The first 4 hours often set intraday liquidity pools and reference levels that many traders monitor for breakouts or reversals. This tool helps traders identify and visualize those ranges quickly on the chart.
How it works
• Uses TradingView’s time() function to detect bars within 00:00–03:59 America/New_York.
• Accumulates the highest high and lowest low during that 4-hour window.
• At the end of the window, draws High and Low lines for the current day (extend until that day ends).
• Optionally stores and displays levels from a chosen number of previous days.
• Option to show a shaded box highlighting the 4-hour window.
Settings
• Timezone (default: America/New_York)
• Show 4H Window Box (on/off)
• Line colors, width
• Show previous days’ levels (on/off, with how many days to keep)
How to use
• Best applied on intraday timeframes (1m–1h).
• Use these levels as reference points for your own strategy (e.g., breakout, mean reversion, or confluence with other tools).
• The indicator is a utility tool: it does not generate buy/sell signals by itself.
Notes
This script is original: it is not a mashup of multiple public indicators but a dedicated tool to highlight a specific, well-defined trading session.
It is provided for educational purposes only and is not financial advice.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.