PROTECTED SOURCE SCRIPT

NDOG [派大星]

32
🧠 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).

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.