Updated
Liquidity Sweep [TakingProphets]

OVERVIEW
Liquidity Sweep [TakingProphets] is a focused educational tool that marks one thing and marks it well: higher-timeframe liquidity sweeps.
It detects swing highs (buyside liquidity) and swing lows (sellside liquidity) on an aligned higher timeframe, treats them as resting liquidity, and when price wicks beyond a level it draws a line back to the swing origin with a marker to highlight the sweep.
This indicator does not provide trading signals, entries, or forecasts. It is a single-purpose visualization aid for studying liquidity behavior within an ICT-style analytical framework.
An area of resting liquidity is a prior swing high or low where stop orders tend to accumulate. When price trades through that level and reverses, it is commonly studied as a liquidity sweep. This tool automates the detection and marking of those events so they can be reviewed objectively rather than spotted by hand.
PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------
The tool serves as a research and study aid to document and analyze where and when liquidity is swept.
It is commonly used to:
Automate the marking of higher-timeframe swing highs and lows as resting liquidity.
Study how price behaves after wicking through a level of liquidity.
Journal how often sweeps precede reversals or continuations.
Teach the concept of liquidity and sweeps in a mentorship or training context.
LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------
Liquidity Sweep | [TakingProphets] uses a rule-based sequence built around confirmed swing pivots on an aligned higher timeframe.
Timeframe Alignment
Liquidity is sourced from a higher timeframe that can be set automatically from the current chart timeframe, or fixed manually.
In Automatic mode, lower chart timeframes align to a proportionally higher timeframe for the swing source.
Liquidity Detection
Swing highs are treated as buyside liquidity; swing lows are treated as sellside liquidity.
Detected levels are stored as resting liquidity and de-duplicated so the same level is not tracked twice.
Sweep Detection
A level is considered swept when price trades beyond it (a high above a buyside level, or a low below a sellside level).
On a sweep, a line is drawn from the swing origin to the sweep bar, with a customizable marker at the level.
Display Management
Only the most recent user-defined number of sweeps are kept on the chart, so older markings clear automatically.
COMPONENTS AND VISUALS
-----------------------------------------------------------------------------------------------
Sweep Line — A line drawn from the swing origin to the point where the level was swept.
Sweep Marker — A customizable label at the swept level (defaults to a "$$$" tag, and can be changed to any text or emoji).
INPUT CATEGORIES
-----------------------------------------------------------------------------------------------
General — Alignment mode (Automatic or Manual), the manual timeframe selector, and the maximum number of sweeps to display.
Liquidity Sweeps — Sweep visibility, color, marker text, line style, and label size.
Alerts — Master alert toggle, up to three session windows, and separate messages for buyside and sellside sweeps.
USAGE GUIDELINES
-----------------------------------------------------------------------------------------------
Liquidity Sweep | [TakingProphets] is suited for the review and documentation of liquidity sweep behavior.
Recommended educational workflows:
Mark higher-timeframe liquidity and review how price reacts once a level is swept.
Compare sweeps that lead to reversals against those that lead to continuation.
Use the session-windowed alerts to study sweeps only during chosen hours.
Teach liquidity and sweep mechanics in mentorship or training sessions.
The tool works across forex, futures, and crypto markets.
OPERATIONAL NOTES AND LIMITATIONS
-----------------------------------------------------------------------------------------------
Levels are sourced from higher-timeframe swings and update on that timeframe's data.
Only the most recent sweeps are retained; older markings are removed by design.
This tool marks sweeps only. It does not include fair value gaps, setups, entries, or targets.
The sweep markings are visual study aids only.
Performance depends on chart density and available bar history.
ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------
The liquidity and sweep engine is written from scratch in Pine v6, using a confirmed-pivot swing detector, an aligned higher-timeframe source, a de-duplicated resting-liquidity store, and a sweep-marking system with a capped display.
Core concepts such as liquidity, buyside and sellside, and liquidity sweeps are publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.
TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------
This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
Liquidity Sweep [TakingProphets] is a focused educational tool that marks one thing and marks it well: higher-timeframe liquidity sweeps.
It detects swing highs (buyside liquidity) and swing lows (sellside liquidity) on an aligned higher timeframe, treats them as resting liquidity, and when price wicks beyond a level it draws a line back to the swing origin with a marker to highlight the sweep.
This indicator does not provide trading signals, entries, or forecasts. It is a single-purpose visualization aid for studying liquidity behavior within an ICT-style analytical framework.
An area of resting liquidity is a prior swing high or low where stop orders tend to accumulate. When price trades through that level and reverses, it is commonly studied as a liquidity sweep. This tool automates the detection and marking of those events so they can be reviewed objectively rather than spotted by hand.
PURPOSE AND SCOPE
-----------------------------------------------------------------------------------------------
The tool serves as a research and study aid to document and analyze where and when liquidity is swept.
It is commonly used to:
Automate the marking of higher-timeframe swing highs and lows as resting liquidity.
Study how price behaves after wicking through a level of liquidity.
Journal how often sweeps precede reversals or continuations.
Teach the concept of liquidity and sweeps in a mentorship or training context.
LOGIC STRUCTURE
-----------------------------------------------------------------------------------------------
Liquidity Sweep | [TakingProphets] uses a rule-based sequence built around confirmed swing pivots on an aligned higher timeframe.
Timeframe Alignment
Liquidity is sourced from a higher timeframe that can be set automatically from the current chart timeframe, or fixed manually.
In Automatic mode, lower chart timeframes align to a proportionally higher timeframe for the swing source.
Liquidity Detection
Swing highs are treated as buyside liquidity; swing lows are treated as sellside liquidity.
Detected levels are stored as resting liquidity and de-duplicated so the same level is not tracked twice.
Sweep Detection
A level is considered swept when price trades beyond it (a high above a buyside level, or a low below a sellside level).
On a sweep, a line is drawn from the swing origin to the sweep bar, with a customizable marker at the level.
Display Management
Only the most recent user-defined number of sweeps are kept on the chart, so older markings clear automatically.
COMPONENTS AND VISUALS
-----------------------------------------------------------------------------------------------
Sweep Line — A line drawn from the swing origin to the point where the level was swept.
Sweep Marker — A customizable label at the swept level (defaults to a "$$$" tag, and can be changed to any text or emoji).
INPUT CATEGORIES
-----------------------------------------------------------------------------------------------
General — Alignment mode (Automatic or Manual), the manual timeframe selector, and the maximum number of sweeps to display.
Liquidity Sweeps — Sweep visibility, color, marker text, line style, and label size.
Alerts — Master alert toggle, up to three session windows, and separate messages for buyside and sellside sweeps.
USAGE GUIDELINES
-----------------------------------------------------------------------------------------------
Liquidity Sweep | [TakingProphets] is suited for the review and documentation of liquidity sweep behavior.
Recommended educational workflows:
Mark higher-timeframe liquidity and review how price reacts once a level is swept.
Compare sweeps that lead to reversals against those that lead to continuation.
Use the session-windowed alerts to study sweeps only during chosen hours.
Teach liquidity and sweep mechanics in mentorship or training sessions.
The tool works across forex, futures, and crypto markets.
OPERATIONAL NOTES AND LIMITATIONS
-----------------------------------------------------------------------------------------------
Levels are sourced from higher-timeframe swings and update on that timeframe's data.
Only the most recent sweeps are retained; older markings are removed by design.
This tool marks sweeps only. It does not include fair value gaps, setups, entries, or targets.
The sweep markings are visual study aids only.
Performance depends on chart density and available bar history.
ORIGINALITY AND ATTRIBUTION
-----------------------------------------------------------------------------------------------
The liquidity and sweep engine is written from scratch in Pine v6, using a confirmed-pivot swing detector, an aligned higher-timeframe source, a de-duplicated resting-liquidity store, and a sweep-marking system with a capped display.
Core concepts such as liquidity, buyside and sellside, and liquidity sweeps are publicly taught within ICT-style market education. This implementation was designed and engineered by TakingProphets.
TERMS AND DISCLAIMER
-----------------------------------------------------------------------------------------------
This indicator is for educational and informational use only. It does not provide financial advice or predictive output. Historical patterns do not guarantee future results. All users remain responsible for their own decisions. Use of this script implies agreement with TradingView's Terms of Use.
Release Notes
-Updated chart imageDisclaimer
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.
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.