PROTECTED SOURCE SCRIPT

IU Gap Detector

129
DISCRIPTION
IU Gap Detector is a smart and flexible gap detection indicator designed to identify Bullish and Bearish price gaps using three different measurement methods: Volatility (ATR), Fixed Points, and Percentage-based gaps.
It helps traders quickly spot significant market gaps that often lead to strong momentum, reversals, or continuation moves.
The indicator works on any timeframe and any tradable instrument supported on TradingView.

USER INPUTS :

1. Gap Measure Base

* Volatility: Detects gaps based on ATR (Average True Range) to adapt to market volatility
* Points: Detects gaps using fixed point values
* Percentage: Detects gaps based on percentage difference between previous close and current open

2. Gap Points

* Defines minimum gap size in points when using Points mode

3. Gap Percentage

* Defines minimum gap size in percentage when using Percentage mode

4. ATR Factor

* Multiplier for ATR-based gap detection

5. ATR Length

* Period used for ATR calculation

HOW IT WORKS ?

* The script compares the current candle’s open price with the previous candle’s close
* Based on the selected gap measurement type, it calculates whether the gap size is significant
* If the gap is upwards beyond the defined threshold, it marks it as a Bullish Gap
* If the gap is downwards beyond the defined threshold, it marks it as a Bearish Gap
* The background color changes to visually highlight bullish or bearish gaps
* Alerts are triggered automatically when a valid gap is detected

WHY IT IS UNIQUE:

* Supports three different gap detection methods in a single indicator
* ATR-based volatility gaps automatically adapt to changing market conditions
* Clean and minimal background visualization without cluttering the chart
* Works consistently across stocks, indices, forex, crypto, and commodities
* Easy-to-configure inputs suitable for both beginners and advanced traders


HOW USER CAN BENIFIT FROM IT :

* Identify high-probability gap trading opportunities instantly
* Improve entry timing during market open or high volatility sessions
* Use gaps for momentum, reversal, or continuation strategies
* Combine with trend, volume, or price action strategies for confirmation
* Set TradingView alerts to never miss important gap events

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.