OPEN-SOURCE SCRIPT
Liquidity Sweep Confirmation Zones [Pineify]

Liquidity Sweep Confirmation Zones [Pineify]
Overview
This overlay separates a wick beyond known swing liquidity from a response that earns a zone. It shows rails, a candidate bridge, confirmed boxes, retest wear, and a dashboard.
Problem Definition
A basic sweep rule labels every wick beyond a prior high or low. It cannot separate rejection from a breakout near the level, and it ignores later response. Permanent lines remain prominent after failure. Back-plotting a pivot also hides that right-side bars were required to confirm it. The task is to find a closed-bar pierce and reclaim at a level already known, then require timely departure before creating support or resistance.
Design Rationale
Confirmed pivots provide structure that existed before the sweep. Each rail is armed once to stop repeated events. ATR scaling replaces raw ticks across price levels, while the sweep freezes its rail, extreme, close, and ATR so later bars cannot rewrite the test. A limited window rejects delayed movement. Net displacement alone was rejected because a choppy path can eventually travel as far; efficiency also measures progress versus total close travel. This can omit real reversals, but accepted events are easier to audit. Dual-rail sweeps are ignored as directionally ambiguous.
Key Features
How It Works
ATR is calculated while a pivot waits for its right-side bars; its rail appears only when confirmed. A later closed bar becomes a candidate when its wick pierces one armed rail by the required ATR fraction and its close reclaims it by the chosen distance. That rail is consumed, while a dual-rail reclaim is ignored.
The candidate freezes direction, rail, extreme, reclaim close, and ATR. Later bars accumulate close travel. Response is directional progress divided by frozen ATR, and efficiency divides positive response by total travel. Both thresholds must pass on the reclaimed side before timeout. Closing through the extreme also fails the candidate.
Confirmation creates a green support or red resistance box on that bar. Each new entry counts as a retest and increases transparency. Bullish zones invalidate below their extreme; bearish zones invalidate above it. Age stops extension, storage removes the oldest excess box, and warm-up shows no rail until ATR and a pivot exist.
How Multiple Indicators Work Together
The stages form one causal chain. Pivots supply pre-existing levels; ATR supplies scale; reclaim establishes rejection; displacement tests follow-through; efficiency rejects wandering paths; the time window links response to sweep. The box preserves that frozen evidence for retest and invalidation. Removing a stage changes the question, so the components are not an arbitrary mashup.
Trading Ideas and Insights
A circle records rejection, not completed follow-through. The amber bridge shows the pending interval while response develops. Green means a downside sweep received efficient upward confirmation; red means the inverse. Fading records more separate retests and can suggest wear for review. These states organize rejection, confirmation, retest, and failure, but do not define entries, targets, returns, or size.
Unique Aspects
The contribution separates event knowledge from outcome. A rail begins only when confirmed, a sweep consumes it once, and its facts are frozen. Promotion needs ATR-scaled progress plus path efficiency within a fixed window. The box starts at promotion, so history does not imply earlier confirmation. Retests count only new entries, not every bar inside. This is an auditable state sequence rather than a renamed pivot marker.
How to Use
Customization
Larger pivots select broader but later structure. Higher pierce or reclaim values filter shallow probes. Raising displacement or efficiency requires cleaner response but reduces events; longer windows weaken temporal linkage. Zone life sets the horizon, maximum zones bounds objects, and maximum retests changes wear shading only. Visual layers hide independently. Defaults are not universal optima.
Assumptions and Limitations
Confirmed pivots are assumed useful liquidity references and ATR an adequate scale. Pivot delay leaves recent structure unavailable. Only one candidate is tracked, and dual-rail sweeps are rejected. Bar-based efficiency cannot reveal intrabar order, actual liquidity, stops, or intent. Gaps, fast trends, thin markets, and poor settings can break interpretation. Closed bars drive state, but setting or data revisions can recalculate history. The script does not detect actual stop hunts, predict reversals, measure profitability, or decide whether to trade a zone.
Conclusion
The overlay turns a known swing, closed-bar reclaim, and bounded efficient response into a staged record. No zone exists before follow-through qualifies it; delay, wear, expiry, and failure stay visible.
Overview
This overlay separates a wick beyond known swing liquidity from a response that earns a zone. It shows rails, a candidate bridge, confirmed boxes, retest wear, and a dashboard.
Problem Definition
A basic sweep rule labels every wick beyond a prior high or low. It cannot separate rejection from a breakout near the level, and it ignores later response. Permanent lines remain prominent after failure. Back-plotting a pivot also hides that right-side bars were required to confirm it. The task is to find a closed-bar pierce and reclaim at a level already known, then require timely departure before creating support or resistance.
Design Rationale
Confirmed pivots provide structure that existed before the sweep. Each rail is armed once to stop repeated events. ATR scaling replaces raw ticks across price levels, while the sweep freezes its rail, extreme, close, and ATR so later bars cannot rewrite the test. A limited window rejects delayed movement. Net displacement alone was rejected because a choppy path can eventually travel as far; efficiency also measures progress versus total close travel. This can omit real reversals, but accepted events are easier to audit. Dual-rail sweeps are ignored as directionally ambiguous.
Key Features
- One-shot confirmed swing rails.
- ATR-scaled pierce and reclaim gates.
- Frozen response, path efficiency, and age.
- Zones beginning at confirmation, with retest wear and bounded life.
- Closed-bar candidate, confirmation, and invalidation alerts.
How It Works
ATR is calculated while a pivot waits for its right-side bars; its rail appears only when confirmed. A later closed bar becomes a candidate when its wick pierces one armed rail by the required ATR fraction and its close reclaims it by the chosen distance. That rail is consumed, while a dual-rail reclaim is ignored.
The candidate freezes direction, rail, extreme, reclaim close, and ATR. Later bars accumulate close travel. Response is directional progress divided by frozen ATR, and efficiency divides positive response by total travel. Both thresholds must pass on the reclaimed side before timeout. Closing through the extreme also fails the candidate.
Confirmation creates a green support or red resistance box on that bar. Each new entry counts as a retest and increases transparency. Bullish zones invalidate below their extreme; bearish zones invalidate above it. Age stops extension, storage removes the oldest excess box, and warm-up shows no rail until ATR and a pivot exist.
How Multiple Indicators Work Together
The stages form one causal chain. Pivots supply pre-existing levels; ATR supplies scale; reclaim establishes rejection; displacement tests follow-through; efficiency rejects wandering paths; the time window links response to sweep. The box preserves that frozen evidence for retest and invalidation. Removing a stage changes the question, so the components are not an arbitrary mashup.
Trading Ideas and Insights
A circle records rejection, not completed follow-through. The amber bridge shows the pending interval while response develops. Green means a downside sweep received efficient upward confirmation; red means the inverse. Fading records more separate retests and can suggest wear for review. These states organize rejection, confirmation, retest, and failure, but do not define entries, targets, returns, or size.
Unique Aspects
The contribution separates event knowledge from outcome. A rail begins only when confirmed, a sweep consumes it once, and its facts are frozen. Promotion needs ATR-scaled progress plus path efficiency within a fixed window. The box starts at promotion, so history does not imply earlier confirmation. Retests count only new entries, not every bar inside. This is an auditable state sequence rather than a renamed pivot marker.
How to Use
- Choose pivots for the intended structure horizon.
- Watch armed rails; a circle marks a closed-bar pierce and reclaim.
- Read bridge, response ATR, efficiency, and age while pending.
- Treat a diamond and new box as confirmation on that bar; then monitor retests and failure.
- Use Once Per Bar Close alerts with separate execution and risk rules.
Customization
Larger pivots select broader but later structure. Higher pierce or reclaim values filter shallow probes. Raising displacement or efficiency requires cleaner response but reduces events; longer windows weaken temporal linkage. Zone life sets the horizon, maximum zones bounds objects, and maximum retests changes wear shading only. Visual layers hide independently. Defaults are not universal optima.
Assumptions and Limitations
Confirmed pivots are assumed useful liquidity references and ATR an adequate scale. Pivot delay leaves recent structure unavailable. Only one candidate is tracked, and dual-rail sweeps are rejected. Bar-based efficiency cannot reveal intrabar order, actual liquidity, stops, or intent. Gaps, fast trends, thin markets, and poor settings can break interpretation. Closed bars drive state, but setting or data revisions can recalculate history. The script does not detect actual stop hunts, predict reversals, measure profitability, or decide whether to trade a zone.
Conclusion
The overlay turns a known swing, closed-bar reclaim, and bounded efficient response into a staged record. No zone exists before follow-through qualifies it; delay, wear, expiry, and failure stay visible.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🚀🚀🚀 Pineify - pineify.app
Essential Toolkit for Every Trader
- AI Pine Script Generator
- Finance AI Agent
- AI Stock Picker
- Pine Script Visual Editor
- Invited indicators
- Strategy Optimizer
- Trading Journal
- Backtest Report
Essential Toolkit for Every Trader
- AI Pine Script Generator
- Finance AI Agent
- AI Stock Picker
- Pine Script Visual Editor
- Invited indicators
- Strategy Optimizer
- Trading Journal
- Backtest Report
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🚀🚀🚀 Pineify - pineify.app
Essential Toolkit for Every Trader
- AI Pine Script Generator
- Finance AI Agent
- AI Stock Picker
- Pine Script Visual Editor
- Invited indicators
- Strategy Optimizer
- Trading Journal
- Backtest Report
Essential Toolkit for Every Trader
- AI Pine Script Generator
- Finance AI Agent
- AI Stock Picker
- Pine Script Visual Editor
- Invited indicators
- Strategy Optimizer
- Trading Journal
- Backtest Report
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.