PROTECTED SOURCE SCRIPT
Gap Finder with Horizontal Lines

Because I was tired of manually marking gaps, I coded a simple script to automatically mark all candle gaps.
To ensure that all gaps are displayed even when only the wicks of the next candles touch the previous candle, the condition for identifying gaps was adjusted. Now this indicator tracks all gaps live and highlights high-volume price changes, which is important for swing trading or day trading. The code checks if the previous candle is completely below or above the current candle, considering both the bodies and the wicks.
There are a few scenarios where I use this indicator:
Scenario 1:
When the price increases with gaps, there is a high chance the price will come down to fill the gap.
Scenario 2:
When you see a cluster of many gaps and indicator lines, there is a high chance that there was a lot of volume and possible support.
Settings:
Update: You can change the transparency of the Lines to keep your Chart clean.
In the picture above, I marked some gaps that were closed shortly after they appeared. I use this indicator in the 1M timeframe, where gaps are closed very quickly. Some gaps created by the next candle are closed right away.
The code can be used for your private use and benefit, but please don’t forget to like it if you find it useful.
To ensure that all gaps are displayed even when only the wicks of the next candles touch the previous candle, the condition for identifying gaps was adjusted. Now this indicator tracks all gaps live and highlights high-volume price changes, which is important for swing trading or day trading. The code checks if the previous candle is completely below or above the current candle, considering both the bodies and the wicks.
There are a few scenarios where I use this indicator:
Scenario 1:
When the price increases with gaps, there is a high chance the price will come down to fill the gap.
Scenario 2:
When you see a cluster of many gaps and indicator lines, there is a high chance that there was a lot of volume and possible support.
Settings:
Update: You can change the transparency of the Lines to keep your Chart clean.
In the picture above, I marked some gaps that were closed shortly after they appeared. I use this indicator in the 1M timeframe, where gaps are closed very quickly. Some gaps created by the next candle are closed right away.
The code can be used for your private use and benefit, but please don’t forget to like it if you find it useful.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.