[UNITY] PO3 Fractal Mode

Visual Guide:
SFP/PO3 Labels:
C1: The reference candle (liquidity point).
C2: The sweep candle (manipulation).
C3: The confirmation candle (reversal).
XC2 (Red): Indicates the setup has failed (C2 high/low was breached).
Ghost Map (Mini-Map):
Displays the HTF candles (Open, High, Low, Close) relative to the current price.
TS (Turtle Soup): Marks a liquidity sweep on the HTF.
DOL (Draw on Liquidity): Marks the target liquidity on the HTF.
Lines: Solid lines indicate confirmed sweeps; standard lines mark structural openings.
Imbalance:
Candles responsible for FVGs are highlighted in Blue (Bullish) or Red (Bearish).
Requirements: This script requires a valid monthly password to function.
Important Note: This script is protected by a security system. Even if you have access to the script on TradingView, you will need the current month's password to view the data. The password changes monthly. Contact me for details.
What's New in New Version?
Simplified Menus: We replaced cluttered checkboxes with intuitive dropdown menus for Operating Modes, Arrow Display, and Ghostmap controls.
Focus on Clarity: The indicator now starts in a "Hidden" state, allowing you to activate the SFP patterns only when needed.
Ghostmap Upgrade: Complete control over the Higher Timeframe (HTF) Map colors. You can now customize body and wick colors independently to match your chart theme perfectly.
One-Click Optimization: The new "High Probability Mode" instantly locks in our recommended settings for filtering the best setups.
Code is protected. Access requires authentication.
This update represents a major overhaul of the indicator's interface and logic. We have focused on decluttering the workspace, improving visual customization, and giving traders more control over timeframe correlation.
🔥 New Features in v3.1:
1. Smart Operating Modes:
Standard (Manual): Gives you full control over individual filters.
High Probability (Auto): Automatically enforces strict filtering criteria and cleans up the chart to focus only on high-quality setups.
2. Ghostmap (HTF) 2.0:
Visual Upgrade: You can now customize Body and Wick colors independently via a streamlined inline menu.
Pollution Control: Vertical time separators are now optional to prevent clutter on lower timeframes.
Master Toggle: A simple "Activated/Deactivated" menu now controls the entire HTF module.
3. Fractal Logic & Flexibility:
Validation: The indicator now alerts you if the current timeframe lacks a direct fractal correlation with the strategy.
Free Timeframe Selection: Added a new option to bypass the fractal check, allowing experienced traders to use "exotic" timeframes (e.g., 7m, 22m) without error blocking.
4. Streamlined Workflow:
SFP Display: The indicator now defaults to "Hidden Mode" for a cleaner startup. When activated, all necessary tools (DOL Line, Labels, CRT Box) are instantly enabled.
Arrow Modes: Choose between Clean (No arrows), Backtest (History), or Trading (Last signal only).
5. Performance:
Removed CISD module for faster load times and lighter script performance.
Re-enabled the Security/Authentication system.
Release Notes (Notas da Versão)
v3.1 Changelog:
UI Overhaul: Replaced checkboxes with dropdown menus for cleaner navigation.
Added "Free Timeframe Selection" to bypass fractal errors.
Separated Ghostmap Body/Wick color settings.
Implemented "Hidden Mode" as default for SFP to reduce chart noise.
Optimized code structure.
Description: We have released a stability update to improve the indicator's performance on lower timeframes.
What's New: Previously, switching to very low timeframes (like 1-minute) could cause old SFP levels to persist on the screen as "ghost lines." We have implemented a new Automatic Cleanup Protocol that instantly clears these invalid lines when you zoom in.
We also added a Minimum Timeframe Selector, giving you full control over when the SFP pattern should start calculating, keeping your lower timeframe charts clean and focused.
Description:
Welcome to the institutional grade update: V3.2
This update transforms the indicator from a purely technical tool into a smart institutional scanner. We have introduced the SMT (Smart Money Technique) Engine and a robust Alert System to help you save screen time and identify high-probability divergences automatically.
🔥 New Features in v3.2:
1. Automatic SMT Engine (Divergence Scanner):
Auto-Correlation: The indicator now automatically detects the asset you are trading and compares it with its prime correlation pair (e.g., EURUSD ↔ GBPUSD, NQ ↔ ES, BTC ↔ ETH). No manual input required.
Dual Visualization:
Ghostmap (HTF): Identifies fractal divergences on the higher timeframe map. You can visually highlight the C2/C3 candles involved in the divergence.
Main Chart (M15+): Optionally projects the SMT line directly onto your chart candles for precise execution (Trading Mode or Backtest Mode).
2. Smart Alerts System:
C2 Confirmation: You can now set alerts specifically for the confirmation of the SFP (C2) pattern.
Noise Filter: Alerts are strictly linked to your "Minimum Timeframe" setting (Default: 15m), preventing spam from lower timeframes like M1 unless intentionally enabled.
3. Visual Modes:
Trading Mode: Keeps your chart clean by showing only the last valid SMT signal.
Backtest Mode: Displays the entire history of SMT divergences for study purposes.
4. Core Improvements:
Fixed rendering issues on lower timeframes.
Optimized request.security calls for faster loading.
v2.0 Update: SMT Logic Stabilization
This update addresses critical issues regarding the calculation of divergences:
Fixed SMT Detection Logic: Resolved a bug where divergence signals were occasionally missed or flagged incorrectly due to timeframe synchronization issues.
Data Feed Optimization: Improved the request.security() handling to ensure the reference symbol's data aligns perfectly with the current chart, eliminating potential false signals caused by data gaps.
Visual Cleanup: Removed redundant plot artifacts for a cleaner chart view.
Institutional Market Structure, SFP & Structural Validation
This indicator is the ultimate toolkit for traders operating with Smart Money Concepts (SMC), ICT, and Institutional Order Flow. It automates the identification of PO3 (Accumulation, Manipulation, Distribution) patterns and SFP (Swing Failure Patterns) while introducing two powerful new validation modules: CISD and C3 Closure.
Unlike standard indicators that clutter your chart, [UNITY] is designed with a "Ghost" philosophy: it calculates everything in the background but only displays actionable information when price interacts with key levels.
🔥 NEW FEATURE: CISD (Change in State of Delivery)
The CISD Module is a fractal structure breaker designed to pinpoint the exact moment market delivery changes from Buy-side to Sell-side (or vice-versa), validated by a Higher Timeframe (HTF).
Auto-Fractal Correlation: The indicator automatically locks to the correct institutional timeframe.
Example: If you trade on M1, CISD looks for M15 structural breaks. If on M5, it looks for H1.
Ghost Mode Technology: Lines are invisible by default. A CISD level (Entry/Breaker) only lights up on your chart when price returns to test it. This keeps your chart 100% clean until a trade setup is valid.
Smart Break Logic: Choose between "Early" (Touch) or "Confirmed" (Close) to validate structural breaks based on your risk appetite.
Visual History Control: Option to see historical CISD levels or focus strictly on the most recent active structure.
🛡️ NEW FEATURE: C3 CLOSURE (Continuity Validation)
Identifying a sweep (SFP) is not enough; you need continuity. The C3 Closure module filters out weak reversals.
The Logic: It analyzes the candle sequence. After a liquidity sweep (C1) and a reversal candle (C2), the third candle (C3) must close beyond the C2 range to confirm the move.
Visual Feedback: Draws a clear box highlighting the C2-C3 relationship when a valid setup occurs.
XC3 Fail Detection: Automatically labels "XC3" if the continuity fails, saving you from entering invalid trades.
💎 CORE FEATURES
Automated SFP Detection: Identifies Swing Failure Patterns with customizable filters (Opposite Color, Reversal Requirements).
Ghostmap HTF: Projects Higher Timeframe candles directly onto your lower timeframe chart to see the "real" candle shapes behind the noise.
SMT Divergence: Automatically scans correlated assets (e.g., EURUSD vs GBPUSD, NQ vs ES, BTC vs ETH) and plots SMT divergences directly on the structure.
FVG & Imbalance: Highlights fair value gaps for target identification.
🚀 HOW TO TRADE (The Workflow)
Wait for the Sweep (SFP): Let the indicator mark the "PREMIUM ZONE" box where liquidity was taken.
Check C3 Closure: Ensure the "C3" label appears, confirming that the reversal has momentum and isn't just a pause.
Wait for CISD: Look for the Blue Line (Bearish) or Red Line (Bullish) to appear. This confirms the internal structure has broken in alignment with the Higher Timeframe.
Entry: Execute on the retest of the CISD line or the C3 Box.
SETTINGS
Authentication: Password protected for authorized users.
Operating Mode: Choose between "Standard Manual" (Custom filters) or "Setup Joe" (High probability presets).
CISD Controls: Toggle Ghost Mode, Historical Lines, and Break Validation (Wick vs Body).
Visuals: Fully customizable colors for Bear/Bull setups.
Risk Warning: This tool aids in analysis but does not guarantee profits. Always use proper risk management.
Developed by JoeSmartRisk
Core Updates & Bug Fixes:
1. HTF Period Separators (Fixed):
Fixed an issue where vertical time separators for the Ghostmap (Higher Timeframe) were not being drawn.
Implemented a dynamic array system to manage these lines, ensuring the last 12 periods remain visible while automatically cleaning up older history to maintain performance.
2. CISD Module Overhaul (Major Logic Update):
True Ghost Mode: CISD lines now spawn completely invisible. They only become visible on the chart at the exact moment of activation (based on the user's "Validation Mode" setting).
Precision Cutoff: Fixed the issue where CISD lines would extend infinitely. Lines now stop extending immediately upon validation:
Early Mode: Stops extending on the exact tick/price touch.
Confirmed Mode: Stops extending upon the candle close that confirms the break.
Smart Cleanup (No Zombie Lines): Improved the invalidation logic. If a previous CISD line was never activated (untouched) and a new pivot forms, the old line is now instantly deleted. This ensures the chart only displays relevant, active, or historically valid levels.
3. General Optimizations:
Code refactoring for better line management and rendering performance on lower timeframes.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với fabigois.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả chấp thuận mới có thể truy cập tập lệnh này. Bạn sẽ cần yêu cầu và được cấp quyền sử dụng. Thông thường quyền này được cấp sau khi thanh toán. Để biết thêm chi tiết, làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với fabigois.
TradingView KHÔNG khuyến nghị bạn trả phí hoặc sử dụng một tập lệnh trừ khi bạn hoàn toàn tin tưởng vào tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm các lựa chọn miễn phí, mã nguồn mở trong các script cộng đồng của chúng tôi.