OPEN-SOURCE SCRIPT

SFP All Swings

1 015

This is a simplified and raw price action focused version of the SFP (Swing Failure Pattern) algorithm originally published by LuxAlgo.

📝 Inspiration & Attribution
This script is built upon the professional SFP detection logic developed by LuxAlgo. In this specific version, we have streamlined the code to focus entirely on core technical SFP requirements and confirmation mechanics. Credit goes to the LuxAlgo team for their original framework.

🛠 Technical Highlights
Raw Price Action Focus: It monitors major swing high and low violations (liquidity grabs) without any external noise, focusing strictly on price behavior.

Wick & Close Logic: Automatically identifies scenarios where the price wicks beyond a prior level but fails to sustain the breakout, closing back inside the range.

Confirmation Engine: Tracks an internal "Confirmation Line." A valid setup is only confirmed once the price closes beyond this specific structural level (marked with ▲/▼).

Auto-Cleanup: To maintain a clean trading environment, the script automatically removes lines and labels for invalidated or expired setups.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。