PROTECTED SOURCE SCRIPT
SFP + OTO ATR [Algoliq]

📌 English Explanation
🔹 What does this indicator do?
The indicator identifies Swing Failure Patterns (SFPs), which occur when price pushes above a previous swing high or below a swing low, then quickly reverses back.
In simple terms: it detects fake breakouts (stop hunts) and potential reversals.
🔹 How does it work?
Pivot detection (L/R):
Uses left/right bar counts to detect swing highs and lows.
Can be set manually or dynamically adjusted based on ATR (volatility).
SFP conditions:
Price must grab liquidity by exceeding the previous swing level.
Candle close conditions (relative to open or previous swing) confirm validity.
If confirmed → a Bearish (red) or Bullish (green) SFP is triggered.
Visuals:
Blue line → liquidity level (previous swing).
Orange dashed line → confirmation level (pivot bar open).
Labels → 🔻 Bearish SFP (red), 🔺 Bullish SFP (green).
Alerts:
Custom alerts are included to notify traders when SFPs form.
🔹 Who is this suitable for?
Best for price action / liquidity-based traders.
Particularly useful for scalpers and day traders who look for false breakouts and liquidity grabs.
Effective for reversal trading strategies after stop hunts.
🔹 What does this indicator do?
The indicator identifies Swing Failure Patterns (SFPs), which occur when price pushes above a previous swing high or below a swing low, then quickly reverses back.
In simple terms: it detects fake breakouts (stop hunts) and potential reversals.
🔹 How does it work?
Pivot detection (L/R):
Uses left/right bar counts to detect swing highs and lows.
Can be set manually or dynamically adjusted based on ATR (volatility).
SFP conditions:
Price must grab liquidity by exceeding the previous swing level.
Candle close conditions (relative to open or previous swing) confirm validity.
If confirmed → a Bearish (red) or Bullish (green) SFP is triggered.
Visuals:
Blue line → liquidity level (previous swing).
Orange dashed line → confirmation level (pivot bar open).
Labels → 🔻 Bearish SFP (red), 🔺 Bullish SFP (green).
Alerts:
Custom alerts are included to notify traders when SFPs form.
🔹 Who is this suitable for?
Best for price action / liquidity-based traders.
Particularly useful for scalpers and day traders who look for false breakouts and liquidity grabs.
Effective for reversal trading strategies after stop hunts.
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน