OPEN-SOURCE SCRIPT
Updated Gap Detector RST

This script detects and visualizes price gaps in the market using customizable settings. It identifies bullish and bearish gaps over a specified lookback period and marks them with clearly defined boxes. Users can adjust the minimum gap percentage threshold and customize colors for better visibility.
Release Notes
Added Text Positioning OptionIntroduced input settings to allow users to position text labels within the box.
Users can select horizontal placement: Left, Center, Right.
Users can select vertical placement: Bottom, Center, Top.
Added Text Color Option
Introduced an input setting to allow users to choose the text color for gap labels.
Users can now customize the label text color separately from the background.
This update improves customization and ensures better visual clarity for displayed gap information.
Release Notes
-Fix Gap Minimum controlRelease Notes
Fix Graphics Minor BugsRelease Notes
- Add number of days- Controls visibility ability
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.