PROTECTED SOURCE SCRIPT
NDOG [派大星]

🧠 Indicator Description — “NDOG [Patrick Star]”
This indicator visualizes Night-Day Opening Gaps (NDOG) based on the custom trading session timing used in U.S. markets.
Instead of using the standard daily candle change, it detects gaps between the 16:59 close and the 18:00 open (New York time, UTC-4).
Whenever the market reopens after the evening pause (from 16:59 → 18:00),
the script measures the price difference between the previous session’s close and the new session’s open,
then draws a shaded box to highlight the opening gap region.
🟦 Bullish Gap (Upward) — when the new session opens above the previous close.
🟪 Bearish Gap (Downward) — when the new session opens below the previous close.
You can control the maximum number of displayed gaps with the “Amount” setting.
This custom session logic allows more accurate visualization of after-hours transitions for futures or extended-hours instruments (e.g., ES, NQ, SPY).
This indicator visualizes Night-Day Opening Gaps (NDOG) based on the custom trading session timing used in U.S. markets.
Instead of using the standard daily candle change, it detects gaps between the 16:59 close and the 18:00 open (New York time, UTC-4).
Whenever the market reopens after the evening pause (from 16:59 → 18:00),
the script measures the price difference between the previous session’s close and the new session’s open,
then draws a shaded box to highlight the opening gap region.
🟦 Bullish Gap (Upward) — when the new session opens above the previous close.
🟪 Bearish Gap (Downward) — when the new session opens below the previous close.
You can control the maximum number of displayed gaps with the “Amount” setting.
This custom session logic allows more accurate visualization of after-hours transitions for futures or extended-hours instruments (e.g., ES, NQ, SPY).
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。