OPEN-SOURCE SCRIPT
Gap Detector (Up & Down)

Gap Detector marks bullish and bearish price gaps directly on the chart.
A Gap Up is detected when the current candle’s low is above the previous candle’s high.
A Gap Down is detected when the current candle’s high is below the previous candle’s low.
The indicator draws gap zones as boxes and extends them until price comes back to fill the gap. When the gap is fully closed, it can label the zone as closed.
Use this indicator to identify possible gap-fill trades, continuation setups, support/resistance zones, and areas where price may react.
A Gap Up is detected when the current candle’s low is above the previous candle’s high.
A Gap Down is detected when the current candle’s high is below the previous candle’s low.
The indicator draws gap zones as boxes and extends them until price comes back to fill the gap. When the gap is fully closed, it can label the zone as closed.
Use this indicator to identify possible gap-fill trades, continuation setups, support/resistance zones, and areas where price may react.
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.
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.
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.