PROTECTED SOURCE SCRIPT
Cập nhật HTF Price Sweep Levels

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.
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.
Phát hành các Ghi chú
UpdateMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.