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.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.