PROTECTED SOURCE SCRIPT
Ban Gap

Ban Gap Indicator Description
The Ban Gap indicator is a time-sensitive gap detection tool designed for intraday trading on low-timeframe charts. It reconstructs synthetic OHLC (Open, High, Low, Close) candles to highlight potential gaps, allowing traders to quickly identify price discontinuities and significant movement zones across multiple second-based timeframes.
Unlike standard indicators, Ban Gap offers dynamic candle reconstruction and a customizable timeframe filter, enabling traders to see gap formations in real-time without cluttering charts.
How It Works
* Synthetic Candle Construction:
* Recalculates candle values using the previous candle’s close and the current price.
* Identifies “gaps” between candle closes and opens.
* Can be applied to all candles or only to daily opens.
* Configurable hour threshold to detect the start of a new trading day.
* Color Coding:
* Green/Teal Candles: Bullish synthetic candles (Close > Open)
* Red Candles: Bearish synthetic candles (Close < Open)
* Quickly visualize market sentiment at a glance.
* Timeframe Filtering:
* Supports 1s, 5s, 10s, 15s, 30s,45s and 1m charts.
* Traders can enable or disable the indicator on specific timeframes using checkboxes.
* Avoids clutter on high-frequency charts.
* Gap Detection Logic:
* Calculates the time difference between consecutive candles in hours.
* When the gap exceeds the threshold, it reconstructs the candle to highlight potential session/day changes.
Key Features
* Dynamic Synthetic OHLC: Highlights gaps effectively using reconstructed candle values.
* Custom Day Open Detection: Apply logic only to daily opens with a configurable hour threshold.
* Multi-Timeframe Support: Fully customizable for 1s, 5s, 10s, 15s, 30s,45s and 1m charts.
* Color-Coded Candles: Instantly differentiate bullish vs. bearish synthetic candles.
* Clean Chart Display: Only plots on selected timeframes to avoid clutter.
The Ban Gap indicator is a time-sensitive gap detection tool designed for intraday trading on low-timeframe charts. It reconstructs synthetic OHLC (Open, High, Low, Close) candles to highlight potential gaps, allowing traders to quickly identify price discontinuities and significant movement zones across multiple second-based timeframes.
Unlike standard indicators, Ban Gap offers dynamic candle reconstruction and a customizable timeframe filter, enabling traders to see gap formations in real-time without cluttering charts.
How It Works
* Synthetic Candle Construction:
* Recalculates candle values using the previous candle’s close and the current price.
* Identifies “gaps” between candle closes and opens.
* Can be applied to all candles or only to daily opens.
* Configurable hour threshold to detect the start of a new trading day.
* Color Coding:
* Green/Teal Candles: Bullish synthetic candles (Close > Open)
* Red Candles: Bearish synthetic candles (Close < Open)
* Quickly visualize market sentiment at a glance.
* Timeframe Filtering:
* Supports 1s, 5s, 10s, 15s, 30s,45s and 1m charts.
* Traders can enable or disable the indicator on specific timeframes using checkboxes.
* Avoids clutter on high-frequency charts.
* Gap Detection Logic:
* Calculates the time difference between consecutive candles in hours.
* When the gap exceeds the threshold, it reconstructs the candle to highlight potential session/day changes.
Key Features
* Dynamic Synthetic OHLC: Highlights gaps effectively using reconstructed candle values.
* Custom Day Open Detection: Apply logic only to daily opens with a configurable hour threshold.
* Multi-Timeframe Support: Fully customizable for 1s, 5s, 10s, 15s, 30s,45s and 1m charts.
* Color-Coded Candles: Instantly differentiate bullish vs. bearish synthetic candles.
* Clean Chart Display: Only plots on selected timeframes to avoid clutter.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.