Session Sweeps Pro | GainzAlgoWhat are Liquidity Sweeps?
In modern algorithmic markets, price does not move randomly; it moves from one pocket of liquidity to the next. Liquidity Sweeps (also known as stop runs or "grabs" ) occur when price briefly breaches a well-defined technical level (like a swing high or low) to trigger the stop-loss orders resting there.
Once this liquidity is "tapped," large institutional players often use these orders to fill their own counter-positions, leading to a sharp reversal . Identifying where these sweeps have occurred and where they are likely to occur next, is the cornerstone of institutional-grade supply and demand trading .
Introducing: Session Sweeps by GainzAlgo
This indicator is a premium technical suite designed to visualize the "gravity" of market liquidity. Unlike 90% of liquidity indicators that simply label old highs and lows, the Session Sweeps uses a probabilistic model to map out exactly where the "business" of the market is being conducted.
It combines real-time sweep detection with a Cumulative Distribution Function (CDF) to provide a heads-up display (HUD) of the session's liquidity health.
How It Works:
The engine monitors price action for "breach and reclaim" signatures .
Detection: When a pivot high or low is swept and price closes back within the previous range, the script identifies a confirmed sweep .
Ghost S/R Zones: Upon detection, the script anchors a "Ghost Box" at the sweep level. These zones extend through the current session, acting as dynamic support and resistance levels that represent "already tapped" liquidity.
Conflict Resolution: To keep your charts clean, the script includes a built-in "De-overlapping" logic . If multiple sweeps occur in the same tight price area, it prioritizes the most significant level , preventing visual clutter.
The Liquidity Sweep CDF Profile
The centerpiece of this indicator is the HUD Profile on the right margin. While standard Volume Profiles show you where volume was traded, our Sweep CDF shows you the distribution of liquidity grabs .
Weighted Gravity: Every bar in the profile is weighted by the frequency of sweeps . A "thick" area in the profile indicates a price zone where the market has repeatedly reached for stops.
Color-Coded Probability: The profile uses a manual RGB interpolation (shifting from Neon Cyan to Magenta). As the bars widen and change color, they represent the cumulative probability (0% to 100%) of the session's total liquidity being found at or below that price.
Sweep POC (Point of Control): The yellow dashed line represents the Sweep POC , the specific price level with the highest density of liquidity sweeps in the current session. This is the market's true "Center of Gravity."
Session Anchoring & Menu Inputs
The indicator is built for the professional intraday and swing trader , offering full control over the data's scope:
Session Period: Select between Daily, Weekly, or Monthly anchors. The CDF profile and S/R zones will automatically reset at the start of each new period, ensuring your data is fresh and relevant .
Profile Resolution: Adjust the number of "Rows" to fine-tune the granularity of the CDF heatmap .
Risk Threshold: Customize the sensitivity of the Sweep Risk Index (top right), which monitors volatility compression to warn you when a sweep is statistically imminent .
How to Trade with Session Sweeps
Mean Reversion: Watch for price to approach the Sweep POC during low-volatility periods. These often act as magnets where price stabilizes.
Exhaustion Signals: Use the CDF percentages (85%, 70%, etc.). If price is trading at the 90% CDF level , it means the majority of the session's liquidity has already been "cleared" below. Pursuing further moves in that direction carries higher risk .
S/R Flips: Use the Ghost S/R Boxes as high-probability entry/exit zones. A Bearish Sweep zone that was once resistance will often act as a "re-entry" point if price returns to test the liquidity remaining in that pocket.
The Risk Index: Monitor the Sweep Risk % in the dashboard. When this index spikes ( Red ), be wary of placing stops at obvious swing points, as the "Stop Hunt" probability is at its peak.
Pine Script® göstergesi






















