OPEN-SOURCE SCRIPT
업데이트됨 [CLH] Simple Sweep Reversal

OVERVIEW
Works on a 1 Hour chart ONLY. Attempts to detect high-probability reversal setups after liquidity sweeps of prior day (PD) highs/lows or overnight (18:00–04:59) highs/lows. Designed to help catch morning session reversals (1:00–10:59 AM chart time) on futures/indices like ES and NQ. It combines swing rejection candles (with customizable wick % filter), moving average trend alignment, and multi-timeframe extreme filters to avoid trading into major weekly/daily highs/lows.
CONCEPT
Many reversals occur when price "sweeps" resting liquidity (stops above PD high or below PD low / overnight extremes), then rejects with a strong wick. This script identifies those failed breakouts and only signals when:
• A swing high/low candle forms with significant wick rejection
• Price is on the "wrong" side of the fast MA (bearish MA for shorts, bullish for longs)
• The move is NOT too close to multi-day or weekly extremes (anti-whipsaw protection)
Signals are restricted to the 01:00–10:59 window to catch post-overnight / early NY reversals.
KEY FEATURES
• Prior Day (PD) High/Low breakout sweeps
• Overnight Range (18:00–04:59) High/Low sweeps
• Wick rejection filter (min % of candle range – default 20%)
• Fast/Slow MA filter (default SMA 20 / 200) + minimum separation (points)
• Daily lookback extreme filter (default 7 days, 100 points buffer)
• Weekly lookback extreme filter (default 2 weeks, 200 points buffer) – blocks shorts near weekly highs, longs near weekly lows
• Optional 4H candle panel (last 3 candles) in lower-right for higher-timeframe context
INPUTS OVERVIEW
• Fast MA Length (default 20) / Slow MA Length (default 200) – SMA/EMA/WMA selectable
• Min separation between MAs (points) – avoids flat-market signals
• Min Wick % of range (default 20%) – 0 = disabled
• Lookback days for daily extremes (default 7) + max distance (default 100 pts)
• Lookback weeks for weekly extremes (default 2) + max distance (default 200 pts)
• Show MAs and Show 4H panel toggles
• Colors for MAs, signals, 4H bodies/wicks
DISCLAIMER
This is NOT financial advice. No guarantee of profitability – past performance ≠ future results. Use at your own risk. Backtest thoroughly and combine with your trading plan. Designed as a confluence tool, not a standalone system.
Feedback welcome! If you find bugs, want tweaks (e.g., session times, volume filter, fib extensions), or have ideas to improve, drop a comment or message. Happy trading!
Works on a 1 Hour chart ONLY. Attempts to detect high-probability reversal setups after liquidity sweeps of prior day (PD) highs/lows or overnight (18:00–04:59) highs/lows. Designed to help catch morning session reversals (1:00–10:59 AM chart time) on futures/indices like ES and NQ. It combines swing rejection candles (with customizable wick % filter), moving average trend alignment, and multi-timeframe extreme filters to avoid trading into major weekly/daily highs/lows.
CONCEPT
Many reversals occur when price "sweeps" resting liquidity (stops above PD high or below PD low / overnight extremes), then rejects with a strong wick. This script identifies those failed breakouts and only signals when:
• A swing high/low candle forms with significant wick rejection
• Price is on the "wrong" side of the fast MA (bearish MA for shorts, bullish for longs)
• The move is NOT too close to multi-day or weekly extremes (anti-whipsaw protection)
Signals are restricted to the 01:00–10:59 window to catch post-overnight / early NY reversals.
KEY FEATURES
• Prior Day (PD) High/Low breakout sweeps
• Overnight Range (18:00–04:59) High/Low sweeps
• Wick rejection filter (min % of candle range – default 20%)
• Fast/Slow MA filter (default SMA 20 / 200) + minimum separation (points)
• Daily lookback extreme filter (default 7 days, 100 points buffer)
• Weekly lookback extreme filter (default 2 weeks, 200 points buffer) – blocks shorts near weekly highs, longs near weekly lows
• Optional 4H candle panel (last 3 candles) in lower-right for higher-timeframe context
INPUTS OVERVIEW
• Fast MA Length (default 20) / Slow MA Length (default 200) – SMA/EMA/WMA selectable
• Min separation between MAs (points) – avoids flat-market signals
• Min Wick % of range (default 20%) – 0 = disabled
• Lookback days for daily extremes (default 7) + max distance (default 100 pts)
• Lookback weeks for weekly extremes (default 2) + max distance (default 200 pts)
• Show MAs and Show 4H panel toggles
• Colors for MAs, signals, 4H bodies/wicks
DISCLAIMER
This is NOT financial advice. No guarantee of profitability – past performance ≠ future results. Use at your own risk. Backtest thoroughly and combine with your trading plan. Designed as a confluence tool, not a standalone system.
Feedback welcome! If you find bugs, want tweaks (e.g., session times, volume filter, fib extensions), or have ideas to improve, drop a comment or message. Happy trading!
릴리즈 노트
Improved placement of label under 4 Hour chart. It should now land consistently on the vertical axis regardless of middle bar height.릴리즈 노트
Now detects failure swings. If price reverses from a swing point that fails to take out the High or Low of the day between 1:00 AM and 10:59 AM (New York time), we want to know about it.오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.