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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité