OPEN-SOURCE SCRIPT
Sweep V-Recovery Smart Zones Pro

Sweep V-Recovery Smart Zones Pro is a smart-money style TradingView indicator designed to identify liquidity sweeps, fast V-shape recoveries, and high-quality retests into key zones such as Inversion Fair Value Gaps (IFVGs), Order Blocks (OBs), and Breaker Blocks.
The indicator is built to help traders focus on reversal and continuation setups that begin with a sweep of liquidity, followed by a sharp recovery, and then a retest into a valid bullish or bearish zone. This makes it especially useful for traders looking for structured entries rather than chasing the initial move.
In addition to the core signal logic, the script also maps and manages real-time Fair Value Gaps (FVGs), Inversion Fair Value Gaps (IFVGs), Order Blocks, and Breaker Blocks directly on the chart using customizable live boxes. Zones can be shown or hidden individually, their colors can be fully customized, and invalidated zones can automatically remove themselves to keep the chart cleaner.
A major feature of this indicator is its smart zone behavior. When enabled, broken FVGs can automatically convert into IFVGs, allowing the chart to update as market structure changes. The indicator can also preserve prior-session zones and lets the user define how many days of historical zones should remain visible, making it useful for both intraday and multi-day context.
The script also includes IFVG quality filters to reduce lower-probability signals. Users can require a minimum IFVG size in ticks, limit how far away the original FVG can be before the inversion is considered valid, and optionally block signals when price is trading inside a Balanced Price Range (BPR) or overlapping opposite-gap area.
For traders who want stronger confirmation, the indicator can also print a strong signal when an IFVG overlaps with an Order Block or Breaker Block in the same price area. This helps distinguish standard setups from higher-confluence setups.
What the indicator looks for
Long setup
Price sweeps a prior low
Price forms a V-shape recovery
Price retests a valid bullish IFVG, bullish OB, or bullish Breaker
A long signal appears when confirmation rules are met
Short setup
Price sweeps a prior high
Price forms an inverted V recovery
Price retests a valid bearish IFVG, bearish OB, or bearish Breaker
A short signal appears when confirmation rules are met
Features
Liquidity sweep detection
3-bar V-recovery logic
2-candle snapback recovery logic
Retest signal logic
Real-time FVG, IFVG, Order Block, and Breaker Block boxes
Optional automatic removal of broken zones
Optional FVG to IFVG conversion
Adjustable historical zone lookback
Optional BPR no-signal filter
Optional minimum IFVG size filter
Optional maximum bars from FVG to IFVG filter
Strong confirmation signals when IFVG overlaps OB or Breaker
Fully customizable colors and visibility settings
Built-in alerts
Designed for clean charting and flexible workflows
Recommended settings
These are the settings I found to work best:
Setting Recommended Value
Zone Lookback Days 20
Minimum IFVG Size 20 ticks
Max Bars From FVG to IFVG 200
Sweep Lookback Bars 30
Recovery Window Bars 2
Retest Window Bars 15
Best use
This indicator is best suited for intraday trading, especially on markets where liquidity sweeps and fast recoveries are common. It works well for traders who want to combine price action, smart-money zone mapping, and clean retest entries into one workflow.
Notes
FVG, IFVG, Order Block, Breaker Block, and BPR logic are rule-based and designed for consistent automation in Pine Script. Because of that, they may not perfectly match every discretionary interpretation, but they provide a practical and structured framework for real-time analysis.
The indicator is built to help traders focus on reversal and continuation setups that begin with a sweep of liquidity, followed by a sharp recovery, and then a retest into a valid bullish or bearish zone. This makes it especially useful for traders looking for structured entries rather than chasing the initial move.
In addition to the core signal logic, the script also maps and manages real-time Fair Value Gaps (FVGs), Inversion Fair Value Gaps (IFVGs), Order Blocks, and Breaker Blocks directly on the chart using customizable live boxes. Zones can be shown or hidden individually, their colors can be fully customized, and invalidated zones can automatically remove themselves to keep the chart cleaner.
A major feature of this indicator is its smart zone behavior. When enabled, broken FVGs can automatically convert into IFVGs, allowing the chart to update as market structure changes. The indicator can also preserve prior-session zones and lets the user define how many days of historical zones should remain visible, making it useful for both intraday and multi-day context.
The script also includes IFVG quality filters to reduce lower-probability signals. Users can require a minimum IFVG size in ticks, limit how far away the original FVG can be before the inversion is considered valid, and optionally block signals when price is trading inside a Balanced Price Range (BPR) or overlapping opposite-gap area.
For traders who want stronger confirmation, the indicator can also print a strong signal when an IFVG overlaps with an Order Block or Breaker Block in the same price area. This helps distinguish standard setups from higher-confluence setups.
What the indicator looks for
Long setup
Price sweeps a prior low
Price forms a V-shape recovery
Price retests a valid bullish IFVG, bullish OB, or bullish Breaker
A long signal appears when confirmation rules are met
Short setup
Price sweeps a prior high
Price forms an inverted V recovery
Price retests a valid bearish IFVG, bearish OB, or bearish Breaker
A short signal appears when confirmation rules are met
Features
Liquidity sweep detection
3-bar V-recovery logic
2-candle snapback recovery logic
Retest signal logic
Real-time FVG, IFVG, Order Block, and Breaker Block boxes
Optional automatic removal of broken zones
Optional FVG to IFVG conversion
Adjustable historical zone lookback
Optional BPR no-signal filter
Optional minimum IFVG size filter
Optional maximum bars from FVG to IFVG filter
Strong confirmation signals when IFVG overlaps OB or Breaker
Fully customizable colors and visibility settings
Built-in alerts
Designed for clean charting and flexible workflows
Recommended settings
These are the settings I found to work best:
Setting Recommended Value
Zone Lookback Days 20
Minimum IFVG Size 20 ticks
Max Bars From FVG to IFVG 200
Sweep Lookback Bars 30
Recovery Window Bars 2
Retest Window Bars 15
Best use
This indicator is best suited for intraday trading, especially on markets where liquidity sweeps and fast recoveries are common. It works well for traders who want to combine price action, smart-money zone mapping, and clean retest entries into one workflow.
Notes
FVG, IFVG, Order Block, Breaker Block, and BPR logic are rule-based and designed for consistent automation in Pine Script. Because of that, they may not perfectly match every discretionary interpretation, but they provide a practical and structured framework for real-time analysis.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.