OPEN-SOURCE SCRIPT
H1 Liquidity Sweep Tracker

🇬🇧 English: H1 Liquidity Sweep Tracker
Overview
The H1 Liquidity Sweep Tracker is a technical analysis tool designed for TradingView (Pine Script v5). It identifies "Liquidity Sweeps"—market movements where the price briefly breaches a significant level to trigger stop-loss orders before reversing.
Core Functions
H1 Level Detection: Regardless of your current timeframe (e.g., 1m, 5m, or 15m), the script automatically fetches the High and Low of the previous 1-hour candle.
Real-Time Monitoring: It tracks price action relative to these levels to identify failed breakouts.
Visual Indicators:
Horizontal Lines: Displays the H1 High (Red) and H1 Low (Green) from the previous hour.
Sweep Shapes: A triangle appears above/below the candle when a sweep is detected.
How it Works (The Logic)
A "Sweep" is triggered when the current price moves beyond the H1 boundary but fails to maintain that position:
Bullish Sweep: The price drops below the previous H1 Low (collecting sell-side liquidity) but closes back above it. This suggests a potential upward reversal.
Bearish Sweep: The price rises above the previous H1 High (collecting buy-side liquidity) but closes back below it. This suggests a potential downward reversal.
Overview
The H1 Liquidity Sweep Tracker is a technical analysis tool designed for TradingView (Pine Script v5). It identifies "Liquidity Sweeps"—market movements where the price briefly breaches a significant level to trigger stop-loss orders before reversing.
Core Functions
H1 Level Detection: Regardless of your current timeframe (e.g., 1m, 5m, or 15m), the script automatically fetches the High and Low of the previous 1-hour candle.
Real-Time Monitoring: It tracks price action relative to these levels to identify failed breakouts.
Visual Indicators:
Horizontal Lines: Displays the H1 High (Red) and H1 Low (Green) from the previous hour.
Sweep Shapes: A triangle appears above/below the candle when a sweep is detected.
How it Works (The Logic)
A "Sweep" is triggered when the current price moves beyond the H1 boundary but fails to maintain that position:
Bullish Sweep: The price drops below the previous H1 Low (collecting sell-side liquidity) but closes back above it. This suggests a potential upward reversal.
Bearish Sweep: The price rises above the previous H1 High (collecting buy-side liquidity) but closes back below it. This suggests a potential downward reversal.
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.