OPEN-SOURCE SCRIPT
Liquidity Sweep + FVG [Leon/RussellTech] v2

Liquidity Sweep + FVG Indicator
A multi-confluence day-trading indicator that identifies institutional stop-hunts (liquidity sweeps) followed by displacement Fair Value Gaps, then plans precise entries with automatic stop-loss and take-profit placement.
How It Works
The indicator uses a state machine that progresses through a strict sequence. Every signal must pass through all 7 confluence layers — if any single layer fails, no signal fires. This is what prevents false signals and maintains quality.
State Machine Lifecycle
Idle — The indicator monitors swing pivot highs and lows using the configured lookback period. Up to 4 recent levels are tracked.
Sweep Detected — Price wicks beyond a tracked swing level and (if required) closes back inside. A sweep marker (▲ or ▼) appears on the chart.
Armed — Within the Sweep→FVG Window (10 bars), a valid FVG forms in the sweep direction. The status panel shows "armed (long)" or "armed (short)".
Entry — Within the FVG→Entry Window (24 bars), price retraces into the FVG zone, the entry candle shows momentum, and all filters pass. Signal fires with Entry, SL, and TP drawn.
Tracking — The indicator tracks whether price hits the TP, SL, or times out, then returns to Idle.
The 7 Confluence Layers
Every signal must pass through all seven layers. This multi-confluence approach is what separates this indicator from simple FVG detectors or sweep scanners.
A multi-confluence day-trading indicator that identifies institutional stop-hunts (liquidity sweeps) followed by displacement Fair Value Gaps, then plans precise entries with automatic stop-loss and take-profit placement.
How It Works
The indicator uses a state machine that progresses through a strict sequence. Every signal must pass through all 7 confluence layers — if any single layer fails, no signal fires. This is what prevents false signals and maintains quality.
State Machine Lifecycle
Idle — The indicator monitors swing pivot highs and lows using the configured lookback period. Up to 4 recent levels are tracked.
Sweep Detected — Price wicks beyond a tracked swing level and (if required) closes back inside. A sweep marker (▲ or ▼) appears on the chart.
Armed — Within the Sweep→FVG Window (10 bars), a valid FVG forms in the sweep direction. The status panel shows "armed (long)" or "armed (short)".
Entry — Within the FVG→Entry Window (24 bars), price retraces into the FVG zone, the entry candle shows momentum, and all filters pass. Signal fires with Entry, SL, and TP drawn.
Tracking — The indicator tracks whether price hits the TP, SL, or times out, then returns to Idle.
The 7 Confluence Layers
Every signal must pass through all seven layers. This multi-confluence approach is what separates this indicator from simple FVG detectors or sweep scanners.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.