OPEN-SOURCE SCRIPT

Gap Finder with Box Fill

Setup and Inputs

The indicator checks the current and previous candles to find gaps, using a color input for filling the gap area on the chart.

Gap Detection:
If the current candle opens higher than the previous close and doesn’t overlap with the previous candle’s range, it marks this as a gap-up.
If the current candle opens lower than the previous close without overlap, it’s marked as a gap-down.

Drawing the Gap:
When a gap-up or gap-down is found, the script draws a box from the previous close to the current candle’s low or high, filling it with the chosen color.

Benefits

Visual Aid: The filled box highlights gaps, making them easy to spot on the chart.

Trade Signals: Gaps can show strong market moves, helping traders spot potential entries or watch for reversals.

Customizable: You can adjust the color to fit your chart style, making the gaps stand out clearly.

This simple tool gives traders a quick view of gaps, which are often key points of interest in technical analysis.
Candlestick analysisFundamental AnalysisgapgapsVolume

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明