GAP DETECTOR is an indicator displaying price gaps that have never been completely filled (only gaps >= 5 pips are considered).
Each gap is defined by two lines (the lower and upper bound of the gap), and a label giving information on its price range

length: the number of candles being considered in the indicator (max is 3000).
width: the width of the gap lines.

Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go dodać do ulubionych, żeby używać go na wykresie.

Chcesz użyć tego skryptu na wykresie?



Can you update with highlight gap as band with filled with colour green and red for more appealing.

+9 Odpowiedz
when i copied this to getting error as Add to Chart operation failed, reason: line 212: Could not find function or function reference

any idea why?
+4 Odpowiedz
Asch, love the script!....anyway to have it work so that I can run an intraday chart, like the 5 minute timeframe and see the daily gaps?
+1 Odpowiedz
Asch- donnycf
@donnycf, thanks for the comment. Yes it should work on any timeframe you want. Here is an example of a gap in a 5min timeframe ( ) on CHFJPY 04th May. You may have to increase the "length" parameter in order to see older gaps.
Your code is wonderful and it helps a lot, I am looking forward to your more awesome coding
does not work properly on DXY, H1. there is gap on december 1, 2020. 91.972-91.944, but script is not showing it.
Est-il possible de s'en servir en M5 ?
Asch- HarlemXBT
@HarlemXBT, Cet indicateur fonctionne avec n'importe quelle unité de temps.
really useful , internal server study error needs to be fixed pls