OPEN-SOURCE SCRIPT
已更新 XRS Swing Failure Patterns + Alerts

XRS Swing Failure Patterns + Alerts is a modified version of the original LuxAlgo Swing Failure Pattern script.
The original SFP detection logic is credited to LuxAlgo. This XRS version keeps the core swing failure pattern concept while adding small modifications, styling adjustments, and dedicated alert conditions for multiple timeframes.
This indicator identifies bullish and bearish Swing Failure Patterns, where price sweeps a prior swing high or swing low and then closes back through the level. These patterns are commonly used to identify potential liquidity sweeps, failed breakouts, stop runs, and reversal areas.
Features include:
• Bullish and bearish SFP detection
• Swing length customization
• Optional volume validation
• Optional lower-timeframe volume validation
• Swing lines
• Confirmation lines
• Swing failure wick markers
• SFP labels
• Optional dashboard
• Alerts when an SFP prints on 1m, 5m, 15m, 1h, 4h, and 1D timeframes
This version was modified by XRStrading / chasingkilowatts to make the script better suited for discretionary trading workflows, especially for traders who use liquidity sweeps, session highs/lows, VWAP, order flow, and auction-market concepts.
Original Author: LuxAlgo
Modifications: XRStrading / chasingkilowatts
This script is based on original LuxAlgo work and remains subject to the original attribution and license terms.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
The original SFP detection logic is credited to LuxAlgo. This XRS version keeps the core swing failure pattern concept while adding small modifications, styling adjustments, and dedicated alert conditions for multiple timeframes.
This indicator identifies bullish and bearish Swing Failure Patterns, where price sweeps a prior swing high or swing low and then closes back through the level. These patterns are commonly used to identify potential liquidity sweeps, failed breakouts, stop runs, and reversal areas.
Features include:
• Bullish and bearish SFP detection
• Swing length customization
• Optional volume validation
• Optional lower-timeframe volume validation
• Swing lines
• Confirmation lines
• Swing failure wick markers
• SFP labels
• Optional dashboard
• Alerts when an SFP prints on 1m, 5m, 15m, 1h, 4h, and 1D timeframes
This version was modified by XRStrading / chasingkilowatts to make the script better suited for discretionary trading workflows, especially for traders who use liquidity sweeps, session highs/lows, VWAP, order flow, and auction-market concepts.
Original Author: LuxAlgo
Modifications: XRStrading / chasingkilowatts
This script is based on original LuxAlgo work and remains subject to the original attribution and license terms.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
發行說明
Updating to fix the preview.開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。