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!
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.