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

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità