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!
Release Note
Improved placement of label under 4 Hour chart. It should now land consistently on the vertical axis regardless of middle bar height.Release Note
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.สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน