Drendel GapsAutomatically detects, tracks, and draws overnight price gaps as support and resistance zones on your chart.
A gap forms when a day's entire range opens above or below the prior day's close, leaving an unfilled "gap" in price. These unfilled gaps often act as magnets and as future support/resistance levels. This indicator finds them for you and manages each one through its full lifecycle.
What it does
Draws a box for every unfilled gap it detects
Shrinks the box automatically as price partially fills the gap
Recolors gaps as support or resistance once price comes back and touches the zone — filled-from-below up-gaps become support (green), filled-from-above down-gaps become resistance (red)
Removes gaps once they fully fill or age past your look back window
Shows the current day's gap in real time before the session closes, so you can see a developing gap as it happens (shown with a distinct dotted style)
Settings
Lookback Days / Gap Limit — control how far back gaps are tracked and the maximum number kept on the chart
Gap Visibility — optionally hide gaps for certain symbol types or descriptions (e.g. leveraged or inverse ETFs where gap behavior is less meaningful). On by default for all symbols.
Styling — fully customizable fill colors, borders, and border styles for standard, support, resistance, and current-day gaps
Background
The gap definition and methodology come from Nick Drendel. For a full explanation of how these gap zones work and how to trade them, watch: youtu.be
Links
Follow Nick on X: x.com
Trading Community - Market Pulse: join.marketpulsetrader.com
Penunjuk Pine Script®






















