OPEN-SOURCE SCRIPT
Updated ZB SMC Tools

ZB SMC Tools combines three price-action concepts into one clean charting indicator: Fair Value Gaps, market structure, and liquidity sweeps.
Features:
• Bullish and bearish Fair Value Gap detection
• Automatic removal of mitigated FVGs
• Adjustable FVG size threshold and box extension
• Bullish and bearish Break of Structure (BOS)
• Change of Character (CHoCH) identification
• Confirmed swing-high and swing-low detection
• Buy-side liquidity (BSL) sweeps above swing highs
• Sell-side liquidity (SSL) sweeps below swing lows
• Optional swept-liquidity level lines
• Adjustable ATR penetration filter to reduce minor signals
• Optional rejection-candle direction filter
• Alerts for FVGs, structure breaks, and liquidity sweeps
Liquidity sweep logic:
A sell-side liquidity sweep occurs when price trades below a confirmed swing low and then closes back above that level.
A buy-side liquidity sweep occurs when price trades above a confirmed swing high and then closes back below that level.
Market-structure and liquidity-sweep signals are confirmed using closed candles. Swing points require subsequent candles for confirmation, helping avoid the use of unconfirmed pivots. Settings can be adjusted to suit different markets, instruments, and timeframes.
This indicator is intended to provide chart context. It does not generate guaranteed trade entries and should be used alongside appropriate confirmation and risk management.
Created and integrated by @ZoogBaira.
Fair Value Gap and Market Structure concepts in this implementation are based on the original open-source LuxAlgo scripts. Original work © LuxAlgo.
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International licence (CC BY-NC-SA 4.0).
Features:
• Bullish and bearish Fair Value Gap detection
• Automatic removal of mitigated FVGs
• Adjustable FVG size threshold and box extension
• Bullish and bearish Break of Structure (BOS)
• Change of Character (CHoCH) identification
• Confirmed swing-high and swing-low detection
• Buy-side liquidity (BSL) sweeps above swing highs
• Sell-side liquidity (SSL) sweeps below swing lows
• Optional swept-liquidity level lines
• Adjustable ATR penetration filter to reduce minor signals
• Optional rejection-candle direction filter
• Alerts for FVGs, structure breaks, and liquidity sweeps
Liquidity sweep logic:
A sell-side liquidity sweep occurs when price trades below a confirmed swing low and then closes back above that level.
A buy-side liquidity sweep occurs when price trades above a confirmed swing high and then closes back below that level.
Market-structure and liquidity-sweep signals are confirmed using closed candles. Swing points require subsequent candles for confirmation, helping avoid the use of unconfirmed pivots. Settings can be adjusted to suit different markets, instruments, and timeframes.
This indicator is intended to provide chart context. It does not generate guaranteed trade entries and should be used alongside appropriate confirmation and risk management.
Created and integrated by @ZoogBaira.
Fair Value Gap and Market Structure concepts in this implementation are based on the original open-source LuxAlgo scripts. Original work © LuxAlgo.
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International licence (CC BY-NC-SA 4.0).
Release Notes
Changed the chart image, giving credits to my boys aswell.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.