Sweep Reclaim Retest [Horizontal Levels v2]

The script is a TradingView Pine indicator called Sweep Reclaim Retest [Horizontal Levels v2].
It is designed to find liquidity sweep + reclaim + retest setups around important horizontal levels, especially:
PDH: Previous Day High
PDL: Previous Day Low
PMH: Premarket High
PML: Premarket Low
Swing High
Swing Low
The main improvement is that these levels are drawn using real Pine line objects, so PDH/PDL stay truly horizontal instead of connecting from one value to the next with angled plot lines.
How it works:
It calculates important levels:
Previous day high/low from the daily timeframe.
Premarket high/low from the premarket session.
Swing highs/lows using pivot detection.
It watches for sweeps:
A bullish sweep happens when price dips below a level, then closes back above it.
A bearish sweep happens when price pushes above a level, then closes back below it.
It waits for a retest:
After a sweep/reclaim, the script waits for price to come back to the level.
If price retests and confirms, it gives a signal.
It filters signals:
Optional HTF bias filter using EMA.
Optional candle body confirmation.
Optional break of prior candle high/low.
Optional mid-range filter to avoid trades near the middle of the previous day’s range.
It displays:
Horizontal level lines.
Sweep markers.
CALL / PUT signal markers.
A small info table showing ticker, bias, session status, pending setups, PDH/PDL, PMH/PML, and HTF EMA.
It is designed to find liquidity sweep + reclaim + retest setups around important horizontal levels, especially:
PDH: Previous Day High
PDL: Previous Day Low
PMH: Premarket High
PML: Premarket Low
Swing High
Swing Low
The main improvement is that these levels are drawn using real Pine line objects, so PDH/PDL stay truly horizontal instead of connecting from one value to the next with angled plot lines.
How it works:
It calculates important levels:
Previous day high/low from the daily timeframe.
Premarket high/low from the premarket session.
Swing highs/lows using pivot detection.
It watches for sweeps:
A bullish sweep happens when price dips below a level, then closes back above it.
A bearish sweep happens when price pushes above a level, then closes back below it.
It waits for a retest:
After a sweep/reclaim, the script waits for price to come back to the level.
If price retests and confirms, it gives a signal.
It filters signals:
Optional HTF bias filter using EMA.
Optional candle body confirmation.
Optional break of prior candle high/low.
Optional mid-range filter to avoid trades near the middle of the previous day’s range.
It displays:
Horizontal level lines.
Sweep markers.
CALL / PUT signal markers.
A small info table showing ticker, bias, session status, pending setups, PDH/PDL, PMH/PML, and HTF EMA.
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.
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.