PROTECTED SOURCE SCRIPT
Updated

HTF Price Sweep Levels

59
This indicator is a multi-timeframe liquidity sweep visualization tool designed to highlight Higher Timeframe (HTF) price sweeps directly on a lower-timeframe chart.

Core concept

The script internally reconstructs HTF candle structure while operating on a lower timeframe. By monitoring how an active HTF candle interacts with the previous completed HTF candle’s high and low, it detects moments where price temporarily exceeds those levels and then returns back within range — a behavior commonly associated with liquidity interaction and rejection.

The focus is on price behavior and market structure, not indicator-based calculations.

How it works

Supports multiple HTFs simultaneously (e.g., 15m, 30m, 1h, 4h, Daily).

For each enabled HTF:

Candles are reconstructed in real time from lower-timeframe data.

A sweep is identified only while the HTF candle is still forming, when price trades beyond the prior HTF high or low and subsequently closes back inside the range.

High-side and low-side sweeps are evaluated independently and plotted at the original HTF level.

Visualization

Detected sweeps are drawn as horizontal levels extending forward in time.

Visual separation between high and low sweeps using color and directional labeling.

Each level includes its originating timeframe label for clarity.

Levels are automatically removed once price decisively invalidates them.

Alerts

Alerts are triggered only when a new HTF sweep is confirmed, allowing traders to track significant multi-timeframe liquidity events without unnecessary noise.

Intended use

This script is intended as a contextual analysis tool to help traders observe potential liquidity-driven reactions and structural price behavior across timeframes.
It does not generate trade signals and should be used alongside the trader’s own analysis and risk management.
Release Notes
Update

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.