OPEN-SOURCE SCRIPT
Gap + Order Blocks

1️⃣ What the script does:
A. Price Gaps:
Detects a candle whose low is higher than the previous candle’s high → Bullish Gap.
Detects a candle whose high is lower than the previous candle’s low → Bearish Gap.
Users can choose:
Limited Extension: the rectangle only spans a set number of candles.
Infinite Extension: the rectangle automatically extends to the end of the chart.
B. Order Blocks (simplified version):
Bullish OB: the last bearish candle before a strong upward move.
Bearish OB: the last bullish candle before a strong downward move.
Drawn as colored rectangles for easy visualization of potential buy/sell zones.
2️⃣ Benefits of the script:
All gaps and OBs are drawn automatically on the chart.
Customizable colors for quick recognition of different zones.
Full control over gap extensions and OB length.
Suitable for both beginner and advanced traders.
A. Price Gaps:
Detects a candle whose low is higher than the previous candle’s high → Bullish Gap.
Detects a candle whose high is lower than the previous candle’s low → Bearish Gap.
Users can choose:
Limited Extension: the rectangle only spans a set number of candles.
Infinite Extension: the rectangle automatically extends to the end of the chart.
B. Order Blocks (simplified version):
Bullish OB: the last bearish candle before a strong upward move.
Bearish OB: the last bullish candle before a strong downward move.
Drawn as colored rectangles for easy visualization of potential buy/sell zones.
2️⃣ Benefits of the script:
All gaps and OBs are drawn automatically on the chart.
Customizable colors for quick recognition of different zones.
Full control over gap extensions and OB length.
Suitable for both beginner and advanced traders.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.