PROTECTED SOURCE SCRIPT
Gap 1-3 candle

📊 Gap 1↔3 (Wicks) — Segmented Fills
Gap 1↔3 (Wicks) — Segmented Fills is an advanced price-action indicator designed to visualize wick-based price gaps between the 1st and 3rd candle.
It clearly shows how, when, and by which candles a gap was partially or fully filled.

🔍 What the indicator detects
The indicator identifies gaps between:
1st candle (bar[2])
3rd candle (current bar)
Bullish gap (up gap):
high[2] < low
Price jumps upward
Bearish gap (down gap):
low[2] > high
Price jumps downward
All calculations are done strictly using wicks (high/low) — no candle bodies or close prices.
🧠 How it works
The gap is drawn starting from the 2nd candle (the candle between the 1st and 3rd).
Active gaps are drawn up to the current bar, with optional extension to the right.
When a candle:
Partially enters the gap, the current box is closed on that candle,
and a new box continues with the remaining unfilled zone.
Fully fills the gap, the box is either:
kept and ended on the fill candle (optionally dimmed), or
removed, depending on user settings.
This segmented approach makes it easy to see:
which candles partially filled the gap,
which candle fully filled it.
⚙️ Indicator settings
Lookback Bars – number of bars displayed on the chart
Minimum Gap Size – filter small gaps (in ticks)
Extend Drawing to the Right – extend active gaps forward
Show Filled Gaps – keep or remove filled gaps
Dim Filled Gaps – visually fade filled gaps
Separate colors for bullish and bearish gaps
📈 Practical use cases
This indicator is suitable for:
Price Action trading
Scalping, Intraday, and Swing trading
Identifying imbalances, FVGs, and liquidity zones
Observing price reactions to unfilled gaps
Works on stocks, indices, forex, and crypto.
👤 Author & Contact
Author: Jakub Doskar
📧 Email:
jakub.doskar@gmail.com
🔗 LinkedIn:
linkedin.com/in/jakubdoskar/
Feel free to reach out for feedback, bug reports, or custom indicator modifications.
Gap 1↔3 (Wicks) — Segmented Fills is an advanced price-action indicator designed to visualize wick-based price gaps between the 1st and 3rd candle.
It clearly shows how, when, and by which candles a gap was partially or fully filled.
🔍 What the indicator detects
The indicator identifies gaps between:
1st candle (bar[2])
3rd candle (current bar)
Bullish gap (up gap):
high[2] < low
Price jumps upward
Bearish gap (down gap):
low[2] > high
Price jumps downward
All calculations are done strictly using wicks (high/low) — no candle bodies or close prices.
🧠 How it works
The gap is drawn starting from the 2nd candle (the candle between the 1st and 3rd).
Active gaps are drawn up to the current bar, with optional extension to the right.
When a candle:
Partially enters the gap, the current box is closed on that candle,
and a new box continues with the remaining unfilled zone.
Fully fills the gap, the box is either:
kept and ended on the fill candle (optionally dimmed), or
removed, depending on user settings.
This segmented approach makes it easy to see:
which candles partially filled the gap,
which candle fully filled it.
⚙️ Indicator settings
Lookback Bars – number of bars displayed on the chart
Minimum Gap Size – filter small gaps (in ticks)
Extend Drawing to the Right – extend active gaps forward
Show Filled Gaps – keep or remove filled gaps
Dim Filled Gaps – visually fade filled gaps
Separate colors for bullish and bearish gaps
📈 Practical use cases
This indicator is suitable for:
Price Action trading
Scalping, Intraday, and Swing trading
Identifying imbalances, FVGs, and liquidity zones
Observing price reactions to unfilled gaps
Works on stocks, indices, forex, and crypto.
👤 Author & Contact
Author: Jakub Doskar
📧 Email:
jakub.doskar@gmail.com
🔗 LinkedIn:
linkedin.com/in/jakubdoskar/
Feel free to reach out for feedback, bug reports, or custom indicator modifications.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.