OPEN-SOURCE SCRIPT

Gap Detector (Up & Down)

509
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.

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.