PROTECTED SOURCE SCRIPT
Auto Gap Detector

This indicator uses previous sessions open/close (whichever is closest) and the new sessions open to automatically detect both a gap up or gap down on any timeframe but is intended for use on on the daily timeframe ONLY. This is not the traditional definition of a gap but the one that i use for my strategy and has been more consistent and conservative than others.
We have also provided instructions on how to create alerts for these indicators below.
Happy Trading!
White Boxes: indicate an overnight gap up/down that is incomplete or not filled.
Green Boxes: When a gap fill is complete the white box will be changed to a green box so that it may still be used as a reference for support and resistance on following sessions.
*Color, transparency and borders of boxes can be customized in settings.
Set Up Alerts
Now, let’s make sure you get notified when a gap has occurred and when it has been filled happens:
Open the Alerts Menu
On the chart, click the bell icon (top right of the screen) to create an alert.
Configure the Auto Gap indicator
In the “Condition” dropdown, select “Auto Gap indicator".
Below that, select “Overnight Gap Detected or Overnight Gap Filled.”
*Note: if you want to detect when both a gap has been detected and when it has been filled you must create two separate alerts.
Set “Once Per Bar Close” in the next dropdown (this ensures it only triggers after the period ends, avoiding false signals mid-bar).
Choose how you want to be notified (e.g., popup, email, or phone app—set this under “Notifications”).
Configure the Auto Gap Alert
Click the bell icon again to create a second alert.
Feel free to leave comments requesting any upgrades or potential bugs. Thank you!
We have also provided instructions on how to create alerts for these indicators below.
Happy Trading!
White Boxes: indicate an overnight gap up/down that is incomplete or not filled.
Green Boxes: When a gap fill is complete the white box will be changed to a green box so that it may still be used as a reference for support and resistance on following sessions.
*Color, transparency and borders of boxes can be customized in settings.
Set Up Alerts
Now, let’s make sure you get notified when a gap has occurred and when it has been filled happens:
Open the Alerts Menu
On the chart, click the bell icon (top right of the screen) to create an alert.
Configure the Auto Gap indicator
In the “Condition” dropdown, select “Auto Gap indicator".
Below that, select “Overnight Gap Detected or Overnight Gap Filled.”
*Note: if you want to detect when both a gap has been detected and when it has been filled you must create two separate alerts.
Set “Once Per Bar Close” in the next dropdown (this ensures it only triggers after the period ends, avoiding false signals mid-bar).
Choose how you want to be notified (e.g., popup, email, or phone app—set this under “Notifications”).
Configure the Auto Gap Alert
Click the bell icon again to create a second alert.
Feel free to leave comments requesting any upgrades or potential bugs. Thank you!
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Geschütztes Skript
Dieses Script ist als Closed-Source veröffentlicht. Sie können es kostenlos und ohne Einschränkungen verwenden – erfahren Sie hier mehr.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.