OPEN-SOURCE SCRIPT
New Day Opening Gaps (1m 3:29-9:15)

Precise Day Opening Gap IndicatorThis custom Pine Script indicator is designed for traders who rely on high-precision gap analysis, particularly for markets like the NSE/BSE.🎯 Core Functionality: Precision Gap IdentificationThis indicator calculates and highlights the exact price gap between the previous day's close and the current day's open. Unlike standard gap analysis that relies on higher timeframes, this script ensures accuracy by strictly using 1-minute data:Previous Close: Captured from the 1-minute candle closing at 3:29 PM (15:29).Current Open: Captured from the 1-minute candle opening at 9:15 AM (09:15).The resulting gap zone is plotted and automatically extends to the right, serving as a critical level for current price interaction.✨ Key Features1. Cross-Timeframe PersistenceThe gap markings are calculated based on the 1-minute chart but are displayed correctly and persist across all timeframes, including 5-minute, 15-minute, 1-hour, and even the Daily chart, ensuring consistency no matter how you analyze the price action.2. Controlled Historical ViewAvoid chart clutter with the "Number of Gaps to Show" input. Easily control how many historical day-opening gaps you want to display on your chart, allowing you to focus only on the most recent and relevant levels.3. Full CustomizationCustomize the look and feel to fit your charting style:Gap Zone: Adjust the color and opacity (transparency) of the gap box.Date Label: Toggle the date label display on/off and control its color, background, opacity, and size. The label is optimally placed at the top-right of the gap zone for clear visibility.🛠️ Recommended UseThis tool is perfect for intraday traders looking to:Identify immediate support and resistance zones based on overnight price action.Track where price action reacts to prior day gaps (filling or holding the gap).Maintain a clear visual reference of daily market openings.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。